for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Box\Spout\Writer\Common\Entity;
use Box\Spout\Writer\Common\Entity\Style\Style;
class Row
{
/**
* The cells in this row
* @var Cell[]
*/
protected $cells = [];
* The row style
* @var Style
protected $style;
* Row constructor.
* @param Cell[] $cells
* @param Style|null $style
public function __construct(array $cells, $style)
$this
->setCells($cells)
->setStyle($style);
}
* @return Cell[] $cells
public function getCells()
return $this->cells;
* @return $this
public function setCells(array $cells)
$this->cells = [];
foreach ($cells as $cell) {
$this->addCell($cell);
return $this;
* @return Style
public function getStyle()
return $this->style;
* @return Row
public function setStyle($style)
$this->style = $style ?: new Style();
* @param Cell $cell
public function addCell(Cell $cell)
$this->cells[] = $cell;