Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Sources extends Client |
||
13 | { |
||
14 | /** |
||
15 | * Create new source |
||
16 | * |
||
17 | * @link https://api.u-on.ru/{key}/source/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) |
||
24 | { |
||
25 | // Set HTTP params |
||
26 | $this->type = 'post'; |
||
27 | $this->endpoint = 'source/create'; |
||
28 | $this->params = $parameters; |
||
29 | |||
30 | return $this->done(); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get sources list |
||
35 | * |
||
36 | * @link https://api.u-on.ru/{key}/source.{_format} |
||
37 | * |
||
38 | * @return null|object|\Uon\Interfaces\ClientInterface |
||
39 | */ |
||
40 | public function all() |
||
47 | } |
||
48 | } |
||
49 |