Test Failed
Push — master ( 3eb0e4...9196b6 )
by Ivan
02:13
created

HydratorContainer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A add() 0 6 1
A getHydrators() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Everlution\Navigation\Factory;
6
7
/**
8
 * Class HydratorContainer.
9
 * @author Ivan Barlog <[email protected]>
10
 */
11
abstract class HydratorContainer
12
{
13
    /** @var array */
14
    private $hydrators = [];
15
16
    protected function add($hydrator)
17
    {
18
        $this->hydrators[] = $hydrator;
19
20
        return $this;
21
    }
22
23
    /**
24
     * @return array
25
     */
26
    protected function getHydrators(): array
27
    {
28
        return $this->hydrators;
29
    }
30
}
31