@@ 202-204 (lines=3) @@ | ||
199 | */ |
|
200 | public function getTypeByName($name) { |
|
201 | $map = $this->getTypeMap(); |
|
202 | if (isset($map[$name])) { |
|
203 | return $this->getType($map[$name][0], $map[$name][1]); |
|
204 | } |
|
205 | ||
206 | while (($pos = strpos($name, ':')) !== FALSE && $name = substr($name, 0, $pos)) { |
|
207 | if (isset($map[$name])) { |
|
@@ 207-209 (lines=3) @@ | ||
204 | } |
|
205 | ||
206 | while (($pos = strpos($name, ':')) !== FALSE && $name = substr($name, 0, $pos)) { |
|
207 | if (isset($map[$name])) { |
|
208 | return $this->getType($map[$name][0], $map[$name][1]); |
|
209 | } |
|
210 | } |
|
211 | ||
212 | throw new \LogicException('Could not find type in type map.'); |