@api
@since 1.0.0

@param DataTable\Cell $cell
@return self
511799
public function setCell(Cell $cell)
    {
        $this->cells[(string)$cell->getColumn()] = $cell;
        ksort($this->cells);

        return $this;
    }
1114871
public function notNull($column)
	{
		/** @var ColumnInterface $columnObj */
		$columnObj = $this->factory->references('Column', $column);
		$this->condition->notNull($columnObj);

		return $this;
	}
347043
public function addEvent(Event $event): self
    {
        $event->setSchedule($this);
        $this->events[] = $event;

        return $this;
    }
568592
public function cell($cell, array $data = [], array $options = [])
    {
        $parts = explode('::', $cell);
        if (count($parts) === 2) {
            list($cell, $action) = [$parts[0], $parts[1]];
        } else {
            list($cell, $action) = [$parts[0], 'display'];
        }
        $className = Application::className($cell, 'View/' . self::VIEW_TYPE_CELL);
        $class = new $className($data);
        return $class->{$action}($options);
    }
752249
public function withMethod(string $method): self {
        if ($this->method === $method) {
            return $this;
        }

        $clone = clone $this;
        $clone->method = $method;

        return $clone;
    }
750250
public function setCellAlignment($alignment)
    {
        Assert::oneOf($alignment, Alignment::all(), 'The cell alignment must be one of the Alignment constants. Got: %s');

        $this->cellAlignment = $alignment;

        return $this;
    }
1325537
public function setHeading($column)
    {
        $columns = is_array($column) ? $column : func_get_args();
        
        $this->_head = array_values($columns);
        
        return $this;
    }
849248
public function executeFormula($cell)
    {
        $phpCell = $this->sheet->getCell($cell);
        $phpCell->setValue($phpCell->getFormattedValue());
    }
170539
public function setRow($column)
    {
        $columns = is_array($column) ? $column : func_get_args();
        
        // If this is a sequential array
        if (array_keys($columns) === range(0, count($columns) - 1)) {
            
            $assocArray = array();
            
            for($i=0;$i<count($this->_head);$i++) {
                $assocArray[$this->_head[$i]] = isset($columns[$i]) ? $columns[$i] : '';
            }

            $columns = $assocArray;
            
        }
        
        $this->_rows[] = $columns;
        
        return $this;
    }
1093592
public function auto(
            array $cellsData, 
            int   $nbColsByRow = null, 
            bool  $container = false, 
            array $classes = [], 
            array $attrs = [], 
            array $containerClasses = [], 
            bool  $fluid = true):string
    {
        $nbColsByRow = $nbColsByRow ?? count($cellsData);
        $src = $this->autoStart($nbColsByRow, $container, $fluid, $containerClasses);
        foreach ($cellsData as $cell) {
            $src .= $this->autoNewCol(1, $classes, $attrs);
            $src .= (string) $cell;
        }
        $src .= $this->autoStop();
        return $src;
    }
1244952
public function from(string $table) {
		// set the table
		list($this->Table) = Query\Convert::columnToPlaceholder($this->Quote ,$table);	
		// return self to the next method
		return $this;
	}
550375
function set($data) {
		if ($data instanceof Row) {
			$this->row->__set($data->getTable()->getName() . "_id", $data->id);
			$this->row->__unset($this->name);
			return $this;
		}
		if ($data instanceof Cell) {
			$data = $data->get();
		}
		parent::set($data);
		$this->dirty = true;
		return $this;
	}
1070254
public function setTable(Table $table = null)
    {
        $this->table = $table;

        if ($table && !in_array($this, $table->getRows())) {
            $table->addRow($this);
        }

        return $this;
    }
363288
public function set(string $property, $data = null): self
    {
        $this->data[$property] = $data;

        return $this;
    }
934332
public function column(string $column = null): self
    {
        if (! is_null($column)) {
            $this->column = $column;
        }

        if ($this->locale && ! is_null($column)) {
            $locale = '.'.app()->getLocale().'.';
            $this->column = preg_replace('/'.preg_quote('.', '/').'/', $locale, $column);
        }

        return $this;
    }
632274
public function setCellno($cellno)
    {
        if (!is_string($cellno)) {
            $cellno = strval($cellno);
        }

        $this->cellno = $cellno;
    }
1304005
function thMultiple(array $cells) {
    foreach ($cells as $colName => $content) {
      $this->tsection->th($this->rowName, $colName, $content);
    }
    return $this;
  }