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\Filter\IFilter;
use InvalidArgumentException;
use LogicException;
class Filters extends BaseCollection
{
/** @var IFilter[] */
protected $components = [];
/**
* @return IFilter
* @throws LogicException
*/
public function current()
/** @var IFilter $object */
$object = parent::current();
$this->verifyReturn($object, IFilter::class);
return $object;
}
* @param int|null $offset
* @param IFilter $value
*
* @throws InvalidArgumentException
public function offsetSet($offset, $value)
$this->verifyArgument($value, IFilter::class);
parent::offsetSet($offset, $value);
* @param int $offset
* @return IFilter|null
public function offsetGet($offset)
$object = parent::offsetGet($offset);