Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class mock implements interfaces\endpointsInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * [settings Inherited settings] |
||
18 | * @return [void] |
||
|
|||
19 | */ |
||
20 | public function settings(array $settings) |
||
21 | { |
||
22 | $this->settings = $settings; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * [headerMethods] |
||
27 | * @return [void] |
||
28 | */ |
||
29 | public function headerMethods() |
||
30 | { |
||
31 | $headers = new headers\header; |
||
32 | $headers->setAllowedMethods( |
||
33 | ['GET', 'POST'] |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * [register] |
||
39 | * @return [array] |
||
40 | */ |
||
41 | public function register() |
||
42 | { |
||
43 | return array( |
||
44 | '/mock', |
||
45 | '/mock/{mockId}', |
||
46 | ); |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * [scope Routing scope access] |
||
51 | * @return [string] |
||
52 | */ |
||
53 | public function scope() |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * [run Run the method request] |
||
60 | * @return [void] |
||
61 | */ |
||
62 | public function run() |
||
67 |