| 1 | <?php |
||
| 18 | class ControllerDispatch |
||
| 19 | { |
||
| 20 | |||
| 21 | private $controllerClassName; |
||
| 22 | private $method; |
||
| 23 | private $arguments; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Creates a Controller Dispatch |
||
| 27 | * |
||
| 28 | * @param string $controllerClassName |
||
| 29 | * @param string $method |
||
| 30 | * @param array $arguments |
||
| 31 | */ |
||
| 32 | public function __construct($controllerClassName, $method, array $arguments) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get FQ class name of the controller |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getControllerClassName() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get controller method to call |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getMethod() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get method arguments |
||
| 61 | * |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | public function getArguments() |
||
| 68 | } |
||
| 69 |