1 | <?php |
||
7 | class Account |
||
8 | { |
||
9 | /** |
||
10 | * The Http Client. |
||
11 | * |
||
12 | * @var \Mozammil\Putio\Http\Client |
||
13 | */ |
||
14 | protected $client; |
||
15 | |||
16 | public function __construct(Client $client) |
||
20 | |||
21 | /** |
||
22 | * Information about user account. |
||
23 | * subtitle_languages is a list of ISO639-2 codes. |
||
24 | * |
||
25 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
26 | * |
||
27 | * @see https://api.put.io/v2/docs/account.html#get--account-info |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | public function info() |
||
35 | |||
36 | /** |
||
37 | * User preferences. |
||
38 | * |
||
39 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
40 | * |
||
41 | * @see https://api.put.io/v2/docs/account.html#get--account-settings |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | public function settings() |
||
49 | |||
50 | /** |
||
51 | * Updates user preferences. Only sent parameters are updated. |
||
52 | * |
||
53 | * @param int $default_download_folder |
||
54 | * @param bool $is_invisible |
||
55 | * @param array $subtitle_languages |
||
56 | * |
||
57 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
58 | * |
||
59 | * @see https://api.put.io/v2/docs/account.html#post--account-settings |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function update( |
||
86 | } |
||
87 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: