Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function add(IdentificationInterface $identification): void |
||
36 | { |
||
37 | if (get_class($identification) !== $this->classType) { |
||
38 | throw new \InvalidArgumentException("Identification must be a {$this->classType}"); |
||
39 | } |
||
40 | |||
41 | $this->identifications[$identification->getIdentifier()] = $identification; |
||
42 | } |
||
61 |