Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function getPartsCount(object $element): int |
||
28 | { |
||
29 | if (!$element instanceof Device) { |
||
30 | throw new \InvalidArgumentException('$element must be an Device!'); |
||
31 | } |
||
32 | |||
33 | //TODO: Change this later, when properly implemented devices |
||
34 | //Prevent user from deleting devices, to not accidentally remove filled devices from old versions |
||
35 | return 1; |
||
36 | } |
||
37 | } |