Completed
Push — 7.5 ( 22ec60...932e58 )
by André
23:01
created

TrashResult   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIterator() 0 4 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
namespace eZ\Publish\SPI\Persistence\Content\Location\Trash;
8
9
use ArrayIterator;
10
use eZ\Publish\API\Repository\Values\ValueObject;
11
12
class TrashResult extends ValueObject implements \IteratorAggregate
13
{
14
    /**
15
     * The total number of Trash items matching criteria (ignores offset & limit arguments).
16
     *
17
     * @var int
18
     */
19
    public $totalCount = 0;
20
21
    /**
22
     * The value objects found for the query.
23
     *
24
     * @var \eZ\Publish\SPI\Persistence\Content\Location\Trashed[]
25
     */
26
    public $items = [];
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getIterator()
32
    {
33
        return new ArrayIterator($this->items);
34
    }
35
}
36