for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Box\Spout\Reader\Common\Entity;
class Row
{
/**
* The cells in this row
* @var Cell[]
*/
protected $cells = [];
* Row constructor.
* @param Cell[] $cells
public function __construct(array $cells)
$this->setCells($cells);
}
* @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;
* @param Cell $cell
* @return Row
public function addCell(Cell $cell)
$this->cells[] = $cell;
* @return array The row values, as array
public function toArray()
return array_map(function (Cell $cell) {
return $cell->getValue();
}, $this->cells);