| Total Complexity | 5 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class blog 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) |
||
| 26 | { |
||
| 27 | $this->settings = $settings; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * [headerMethods] |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function headerMethods() |
||
| 35 | { |
||
| 36 | $headers = new headers\header; |
||
| 37 | $headers->setAllowedMethods( |
||
| 38 | ['GET', 'POST'] |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * [register] |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | public function register() |
||
| 47 | { |
||
| 48 | return array( |
||
| 49 | '/blog/article/{blogId}', |
||
| 50 | '/blog/post/{blogId}', |
||
| 51 | '/blog/post/{year}/{month}/{day}/{blogSlug}', |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * [scope Routing scope access] |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function scope() |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * [run Run the method request] |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | public function run() |
||
| 92 |