@@ 153-159 (lines=7) @@ | ||
150 | /** |
|
151 | * Required by the ContainsChildren interface. |
|
152 | */ |
|
153 | public function removeChild(Token $token) |
|
154 | { |
|
155 | $key = array_search($token, $this->children, true); |
|
156 | if ($key !== false) { |
|
157 | unset($this->children[$key]); |
|
158 | } |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * Getter for 'name'. |
@@ 60-66 (lines=7) @@ | ||
57 | /** |
|
58 | * Required by ContainsChildren interface. |
|
59 | */ |
|
60 | public function removeChild(Token $token) |
|
61 | { |
|
62 | $key = array_search($token, $this->children, true); |
|
63 | if ($key !== false) { |
|
64 | unset($this->children[$key]); |
|
65 | } |
|
66 | } |
|
67 | ||
68 | /** |
|
69 | * Required by Cleanable interface. |