| Total Complexity | 3 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Services extends Client |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Add service to voucher |
||
| 16 | * |
||
| 17 | * @link https://api.u-on.ru/{key}/request-action/create.{_format} |
||
| 18 | * |
||
| 19 | * @param array $parameters List of parameters |
||
| 20 | * |
||
| 21 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
| 22 | */ |
||
| 23 | public function create(array $parameters) |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get a list of service types for voucher |
||
| 35 | * |
||
| 36 | * @link https://api.u-on.ru/{key}/service_type.{_format} |
||
| 37 | * |
||
| 38 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
| 39 | */ |
||
| 40 | public function getTypes() |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Update service by ID |
||
| 51 | * |
||
| 52 | * @link https://api.u-on.ru/{key}/service/update/{id}.{_format} |
||
| 53 | * |
||
| 54 | * @param int $id Unique ID of service |
||
| 55 | * @param array $parameters List of parameters |
||
| 56 | * |
||
| 57 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
| 58 | */ |
||
| 59 | public function update(int $id, array $parameters) |
||
| 69 |