| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function AttachDaftFramework(Framework $framework) : void |
||
| 19 | { |
||
| 20 | if ($this->daftFrameworkInstance instanceof Framework) { |
||
| 21 | throw new BadMethodCallException( |
||
| 22 | 'Framework must not be attached if a framework is already attached!' |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | $this->daftFrameworkInstance = $framework; |
||
| 27 | } |
||
| 50 |