Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
25 | abstract class JsonApiRestController extends RestBaseController { |
||
26 | use DynamicResourceTrait; |
||
27 | const API_VERSION = 'JsonAPI 1.0'; |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | * @return RestServer |
||
32 | */ |
||
33 | 2 | protected function getRestServer(): RestServer { |
|
34 | 2 | return new JsonApiRestServer ( $this->config ); |
|
35 | } |
||
36 | |||
37 | 2 | protected function getRequestFormatter(): RequestFormatter { |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * Returns the api version. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | 1 | public static function _getApiVersion() { |
|
47 | 1 | return self::API_VERSION; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Returns the template for creating this type of controller |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public static function _getTemplateFile() { |
||
57 | } |
||
58 | } |
||
59 | |||
60 |