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