Completed
Push — master ( 7d9afb...4e0ac6 )
by Łukasz
49:46 queued 21:48
created

NotificationList   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 16
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
declare(strict_types=1);
8
9
namespace eZ\Publish\API\Repository\Values\Notification;
10
11
use ArrayIterator;
12
use IteratorAggregate;
13
use eZ\Publish\API\Repository\Values\ValueObject;
14
15
class NotificationList extends ValueObject implements IteratorAggregate
16
{
17
    /** @var int */
18
    public $totalCount = 0;
19
20
    /** @var \eZ\Publish\API\Repository\Values\Notification\Notification[] */
21
    public $items = [];
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getIterator()
27
    {
28
        return new ArrayIterator($this->items);
29
    }
30
}
31