1 | <?php |
||
15 | class Instance extends AbstractRoute |
||
16 | { |
||
17 | public $class = ''; |
||
18 | protected $instance = null; |
||
19 | /** @var ReflectionMethod */ |
||
20 | protected $reflection; |
||
21 | |||
22 | 8 | public function __construct($method, $pattern, $instance) |
|
28 | |||
29 | 1 | public function getReflection($method) |
|
30 | { |
||
31 | 1 | if (empty($this->reflection)) { |
|
32 | 1 | $this->reflection = new ReflectionMethod( |
|
33 | 1 | $this->instance, |
|
34 | 1 | $method |
|
35 | ); |
||
36 | } |
||
37 | |||
38 | 1 | return $this->reflection; |
|
39 | } |
||
40 | |||
41 | 5 | public function runTarget($method, &$params) |
|
52 | } |
||
53 |