/** * {@inheritDoc} */ public function execute(Grid $grid) { foreach ($grid->getCells() as $cell) { if (!$cell->isEmpty()) { continue; } if ($this->checkCell($cell)) { return true; } } return false; }
public function __construct(array $grid) { $this->initContainer(); $this->grid = Grid::fromArray($grid); }