BaseModifierCollection   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A all() 0 4 1
1
<?php
2
3
namespace Thruster\Component\HttpModifier;
4
5
use Psr\Http\Message\MessageInterface;
6
7
/**
8
 * Class BaseModifierCollection
9
 *
10
 * @package Thruster\Component\HttpModifier
11
 * @author  Aurimas Niekis <[email protected]>
12
 */
13
class BaseModifierCollection
14
{
15
    /**
16
     * @var ModifierInterface[]
17
     */
18
    protected $collection;
19
20 12
    public function __construct()
21
    {
22 12
        $this->collection = [];
23 12
    }
24
25
    /**
26
     * @return ModifierInterface[]
27
     */
28 8
    public function all() : array
29
    {
30 8
        return $this->collection;
31
    }
32
}
33