@@ 60-67 (lines=8) @@ | ||
57 | * |
|
58 | * @return mixed|null |
|
59 | */ |
|
60 | public function __unset($name) |
|
61 | { |
|
62 | if ($name === 'key' || $name === 'value') { |
|
63 | $this->$name = null; |
|
64 | return; |
|
65 | } |
|
66 | throw new OutOfBoundsException(); |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * @param mixed $name |
|
@@ 88-95 (lines=8) @@ | ||
85 | * |
|
86 | * @return mixed|null |
|
87 | */ |
|
88 | public function __set($name, $value) |
|
89 | { |
|
90 | if ($name === 'key' || $name === 'value') { |
|
91 | $this->$name = $value; |
|
92 | return; |
|
93 | } |
|
94 | throw new OutOfBoundsException(); |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * Returns a copy of the Pair |