Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
45 | 74 | public function offsetSet($offset, $value) |
|
46 | { |
||
47 | 74 | if (!($value instanceof DefinitionInterface)) { |
|
48 | 2 | throw new InvalidArgumentException( |
|
49 | "Trying to add an object to definition list that does ". |
||
50 | "not implement 'DefinitionInterface'." |
||
51 | 2 | ); |
|
52 | } |
||
53 | |||
54 | 72 | parent::offsetSet($offset, $value); |
|
55 | } |
||
56 | } |