Completed
Push — dynamic_siteaccesses ( 16c7ff )
by
unknown
20:23
created

SiteAccessList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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\Core\MVC\Symfony;
10
11
final class SiteAccessList implements \IteratorAggregate
12
{
13
    /** @var \eZ\Publish\Core\MVC\Symfony\SiteAccess[] */
14
    private $siteAccesses;
15
16
    public function __construct(array $siteAccesses)
17
    {
18
        $this->siteAccesses = $siteAccesses;
19
    }
20
21
    public function getIterator()
22
    {
23
        return new \ArrayIterator($this->siteAccesses);
24
    }
25
}
26