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\UserPreference;
use ArrayIterator;
use IteratorAggregate;
use eZ\Publish\API\Repository\Values\ValueObject;
* List of user preferences.
class UserPreferenceList extends ValueObject implements IteratorAggregate
{
* The total number of user preferences.
*
* @var int
public $totalCount = 0;
* @var \eZ\Publish\API\Repository\Values\UserPreference\UserPreference[]
public $items = [];
* {@inheritdoc}
public function getIterator()
return new ArrayIterator($this->items);
}