1 | <?php |
||
46 | class ControllerActionProxy extends AbstractControllerActionProxy |
||
47 | { |
||
48 | /** |
||
49 | * Controller's full class name |
||
50 | * |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $className; |
||
54 | |||
55 | /** |
||
56 | * Controller's method |
||
57 | * |
||
58 | * @var string |
||
59 | */ |
||
60 | protected $method; |
||
61 | |||
62 | /** |
||
63 | * Constructor |
||
64 | * |
||
65 | * @param string $className Controller's full class name |
||
66 | * @param string $method Controller's method |
||
67 | * |
||
68 | * @return void |
||
|
|||
69 | * @throws \InvalidArgumentException if $className or $method is empty |
||
70 | */ |
||
71 | 20 | public function __construct($className, $method) |
|
82 | |||
83 | /** |
||
84 | * Instanciates the controller class |
||
85 | * |
||
86 | * @param Application $app The running application |
||
87 | * |
||
88 | * @return mixed Controller's instance |
||
89 | */ |
||
90 | 4 | protected function instantiate(Application $app) |
|
96 | } |
||
97 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.