for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Psi\Component\Description\Descriptor;
use Psi\Component\Description\DescriptorInterface;
class UriCollectionDescriptor implements DescriptorInterface, \IteratorAggregate
{
private $uris;
public function __construct(array $uris)
$this->uris = $uris;
}
/**
* Return an array of URIs. Note that the keys
* CAN be the class FQN of the object to which the URI
* is related.
*/
public function getValues(): array
return $this->uris;
* {@inheritdoc}
public function getIterator()
return new \ArrayIterator($this->uris);