for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Foo\Grid\Collection;
use Foo\Grid\Cell\ICell;
use InvalidArgumentException;
use LogicException;
class Cells extends BaseCollection
{
const HEAD = 'thead';
/** @var ICell[] */
protected $components = [];
/**
* @return ICell
* @throws LogicException
*/
public function current()
/** @var ICell $object */
$object = parent::current();
$this->verifyReturn($object, ICell::class);
return $object;
}
* @param int|null $offset
* @param ICell $value
*
* @throws InvalidArgumentException
public function offsetSet($offset, $value)
$this->verifyArgument($value, ICell::class);
parent::offsetSet($offset, $value);
* @param int $offset
* @return ICell|null
public function offsetGet($offset)
$object = parent::offsetGet($offset);