for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace eZ\Publish\API\Repository\Values\Content;
use ArrayIterator;
use Iterator;
use IteratorAggregate;
use eZ\Publish\API\Repository\Values\ValueObject;
* List of relations.
class RelationList extends ValueObject implements IteratorAggregate
{
* @var int
public $totalCount = 0;
* @var \eZ\Publish\API\Repository\Values\Content\RelationList\RelationListItemInterface[]
public $items = [];
public function getIterator(): Iterator
return new ArrayIterator($this->items);
}