Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | public function addExtension(ExtensionInterface $extension): void |
||
20 | { |
||
21 | $id = $extension->getIdentifier(); |
||
22 | if (isset($this->extensions[$id])) { |
||
23 | throw new ConfigurationException(sprintf('Extension with identifier %s is already registered.', $id)); |
||
24 | } |
||
25 | $this->extensions[$id] = $extension; |
||
26 | } |
||
37 |