for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\Annotations\Parser\Ast\Collection;
use Countable;
use Doctrine\Annotations\Parser\Ast\ValuableNode;
use Doctrine\Annotations\Parser\Ast\Value;
use Doctrine\Annotations\Parser\Visitor\Visitor;
use IteratorAggregate;
use function count;
final class Collection implements Value, IteratorAggregate, Countable
{
/** @var ValuableNode[] */
private $items;
public function __construct(Entry ...$items)
$this->items = $items;
}
/**
* @return Collection[]
*/
public function getIterator() : iterable
yield from $this->items;
YieldFromNode
Generator
Doctrine\Annotations\Par...Collection\Collection[]
public function count() : int
return count($this->items);
public function dispatch(Visitor $visitor) : void
$visitor->visitCollection($this);