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 content drafts.
class ContentDraftList extends ValueObject implements IteratorAggregate
{
* @var int
public $totalCount = 0;
* @var \eZ\Publish\API\Repository\Values\Content\DraftList\ContentDraftListItemInterface[]
public $items = [];
* {@inheritdoc}
public function getIterator(): Iterator
return new ArrayIterator($this->items);
}