| Total Complexity | 5 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Plan implements RouteInterface |
||
| 8 | { |
||
| 9 | |||
| 10 | 3 | public static function root() |
|
| 13 | } |
||
| 14 | |||
| 15 | 2 | public static function create() |
|
| 16 | { |
||
| 17 | return [ |
||
| 18 | 2 | RouteInterface::METHOD_KEY => RouteInterface::POST_METHOD, |
|
| 19 | 2 | RouteInterface::ENDPOINT_KEY => Plan::root(), |
|
| 20 | 2 | RouteInterface::PARAMS_KEY => [ |
|
| 21 | 2 | 'name', |
|
| 22 | 2 | 'description', |
|
| 23 | 2 | 'amount', |
|
| 24 | 2 | 'interval', |
|
| 25 | 2 | 'send_invoices', |
|
| 26 | 2 | 'send_sms', |
|
| 27 | 2 | 'hosted_page', |
|
| 28 | 2 | 'hosted_page_url', |
|
| 29 | 2 | 'hosted_page_summary', |
|
| 30 | 2 | 'currency', |
|
| 31 | 2 | ], |
|
| 32 | 2 | ]; |
|
| 33 | } |
||
| 34 | |||
| 35 | 2 | public static function fetch() |
|
| 36 | { |
||
| 37 | return [ |
||
| 38 | 2 | RouteInterface::METHOD_KEY => RouteInterface::GET_METHOD, |
|
| 39 | 2 | RouteInterface::ENDPOINT_KEY => Plan::root() . '/{id}', |
|
| 40 | 2 | RouteInterface::ARGS_KEY => ['id'], |
|
| 41 | 2 | ]; |
|
| 42 | } |
||
| 43 | |||
| 44 | 2 | public static function getList() |
|
| 49 | 2 | ]; |
|
| 50 | } |
||
| 51 | |||
| 52 | 2 | public static function update() |
|
| 73 |