Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
59 | public function addRef(&$value) |
||
60 | { |
||
61 | $identityHash = Identity::hash($value); |
||
62 | |||
63 | if (isset($this->values[$identityHash]) || array_key_exists($identityHash, $this->values)) { |
||
64 | return false; |
||
65 | } |
||
66 | |||
67 | $this->values[$identityHash] =& $value; |
||
68 | $this->length++; |
||
69 | |||
70 | return true; |
||
71 | } |
||
72 | |||
98 |