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