| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function getContainerExtension() |
||
| 21 | { |
||
| 22 | if (null === $this->extension) { |
||
| 23 | $extension = $this->createContainerExtension(); |
||
| 24 | |||
| 25 | if ($extension instanceof ExtensionInterface) { |
||
| 26 | $this->extension = $extension; |
||
| 27 | } else { |
||
| 28 | $this->extension = false; |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | return $this->extension; |
||
|
|
|||
| 33 | } |
||
| 34 | } |
||
| 35 |