1 | <?php |
||
25 | class ReflectionMethodFactory extends ReflectorFactory |
||
26 | { |
||
27 | const REFLECTION_OBJECT = ReflectionMethod::class; |
||
28 | |||
29 | /** |
||
30 | * @var PHPNativeReflectionMethod |
||
31 | */ |
||
32 | protected $reflector; |
||
33 | |||
34 | /** |
||
35 | * @var ReflectionMethod |
||
36 | */ |
||
37 | protected $object; |
||
38 | |||
39 | /** |
||
40 | * Returns a new ReflectionMethodFactory using the given class and |
||
41 | * method names |
||
42 | * |
||
43 | * @param string $class The classname of the method |
||
44 | * @param string $method The method to reflect |
||
45 | * @return ReflectionMethodFactory |
||
46 | */ |
||
47 | public static function fromName(string $class, string $method) |
||
54 | |||
55 | /** |
||
56 | * Builds the ReflectionMethod from the provided parameters, |
||
57 | * optionally linking to a parent ReflectionComposite |
||
58 | * |
||
59 | * @param ReflectionComposite $parent The reflector for the class |
||
60 | * this method belongs to |
||
61 | * @return ReflectionMethod |
||
62 | */ |
||
63 | public function build(?ReflectionComposite $parent = null) |
||
74 | } |
||
75 | |||
76 |