Total Complexity | 7 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Behaviours |
||
10 | { |
||
11 | |||
12 | protected $list = []; |
||
13 | |||
14 | public function add(BehaviourInterface $behaviour) |
||
15 | { |
||
16 | $this->list[$behaviour->getName()] = $behaviour; |
||
17 | } |
||
18 | |||
19 | public function remove($name) |
||
20 | { |
||
21 | unset($this->list[$name]); |
||
22 | } |
||
23 | |||
24 | public function without(...$names) |
||
31 | } |
||
32 | |||
33 | public function apply($mapper, $target, $result, ...$args) |
||
43 | } |
||
44 | } |
||
45 |