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