ResourceCollection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A assertItemTypesAreCorrect() 0 6 1
1
<?php
2
3
namespace TomPHP\HalClient\Resource;
4
5
use ArrayAccess;
6
use Assert\Assertion;
7
use Countable;
8
9
/**
10
 * @method ResourceNode function findMatching(array $criteria)
11
 * @method ResourceNode function offsetExists(int $offset)
12
 * @method ResourceNode function offsetGet(int $offset)
13
 */
14
final class ResourceCollection implements ResourceNode, ArrayAccess, Countable
15
{
16
    use Collection;
17
18
    protected function assertItemTypesAreCorrect(array $items)
19
    {
20
        Assertion::allIsInstanceOf($items, ResourceNode::class);
21
22
        $this->items = $items;
23
    }
24
}
25