| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class RestControllerCreator extends RestApiControllerCreator { |
||
| 15 | private $resource; |
||
| 16 | |||
| 17 | 1 | public function __construct($restControllerName, $resource, $routePath = '') { |
|
| 18 | 1 | parent::__construct ( $restControllerName, $routePath ); |
|
| 19 | 1 | $this->resource = $resource; |
|
| 20 | 1 | $this->templateName = 'restController.tpl'; |
|
| 21 | 1 | } |
|
| 22 | |||
| 23 | 1 | protected function addVariablesForReplacement(&$variables) { |
|
| 24 | 1 | $variables ["%resource%"] = $this->resource; |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | protected function addViews(&$uses, &$messages, &$classContent) { |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 |