@@ -24,6 +24,9 @@ discard block |
||
| 24 | 24 | $this->reflection = new \ReflectionClass($instance); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $instance |
|
| 29 | + */ |
|
| 27 | 30 | public static function create($instance) |
| 28 | 31 | { |
| 29 | 32 | return new static($instance); |
@@ -174,6 +177,9 @@ discard block |
||
| 174 | 177 | return $this->reflection->hasConstant($name); |
| 175 | 178 | } |
| 176 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string $name |
|
| 182 | + */ |
|
| 177 | 183 | public function hasMethod($name) |
| 178 | 184 | { |
| 179 | 185 | if (!is_string($name)) { |