PermissionsCollection::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace jschreuder\MiddleAuth\Rbac;
4
5
use Countable;
6
use IteratorAggregate;
7
use jschreuder\MiddleAuth\Util\CollectionTrait;
8
9
final class PermissionsCollection implements IteratorAggregate, Countable
10
{
11
    use CollectionTrait;
12
13 14
    public function __construct(
14
        PermissionInterface ...$permissions
15
    ) {
16 14
        $this->collection = $permissions;
17
    }
18
}
19