lib/PhpParser/Builder/Use_.php 1 location
|
@@ 39-45 (lines=7) @@
|
| 36 |
|
$this->alias = $alias; |
| 37 |
|
return $this; |
| 38 |
|
} |
| 39 |
|
public function __call($name, $args) { |
| 40 |
|
if (method_exists($this, $name . '_')) { |
| 41 |
|
return call_user_func_array(array($this, $name . '_'), $args); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
throw new \LogicException(sprintf('Method "%s" does not exist', $name)); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* Returns the built node. |
lib/PhpParser/BuilderFactory.php 1 location
|
@@ 120-126 (lines=7) @@
|
| 117 |
|
return new Builder\Use_($name, Use_::TYPE_NORMAL); |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
public function __call($name, array $args) { |
| 121 |
|
if (method_exists($this, '_' . $name)) { |
| 122 |
|
return call_user_func_array(array($this, '_' . $name), $args); |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
throw new \LogicException(sprintf('Method "%s" does not exist', $name)); |
| 126 |
|
} |
| 127 |
|
} |
| 128 |
|
|