| Total Complexity | 3 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Catalog extends Client |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Get services of "I'm operator" by page number (first page by default) |
||
| 16 | * |
||
| 17 | * @link https://api.u-on.ru/{key}/bcard-bonus-by-card/{id}.{_format} |
||
| 18 | * |
||
| 19 | * @param int $page Number of page, 1 by default |
||
| 20 | * |
||
| 21 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
| 22 | */ |
||
| 23 | public function get(int $page = 1) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create services of "I'm operator" |
||
| 34 | * |
||
| 35 | * @link https://api.u-on.ru/{key}/bcard-activate/create.{_format} |
||
| 36 | * |
||
| 37 | * @param array $parameters List of parameters [s_id ...] |
||
| 38 | * |
||
| 39 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
| 40 | */ |
||
| 41 | public function create(array $parameters) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Update services of "I'm operator" |
||
| 53 | * |
||
| 54 | * @link https://api.u-on.ru/{key}/catalog-service/update/{id}.{_format} |
||
| 55 | * |
||
| 56 | * @param int $id Unique ID of element |
||
| 57 | * @param array $parameters List of parameters [s_id ...] |
||
| 58 | * |
||
| 59 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
| 60 | */ |
||
| 61 | public function update(int $id, array $parameters) |
||
| 71 |