| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Container |
||
| 13 | { |
||
| 14 | /** @var MutatorInterface[] */ |
||
| 15 | private $mutators = []; |
||
| 16 | |||
| 17 | public function __construct(array $mutators = []) |
||
| 18 | { |
||
| 19 | array_map([$this, 'add'], $mutators); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function add(MutatorInterface $mutator): void |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return MutatorInterface[] |
||
| 29 | */ |
||
| 30 | public function getMutators(): array |
||
| 33 | } |
||
| 34 | } |
||
| 35 |