1 | <?php |
||
13 | class Putio |
||
14 | { |
||
15 | /** |
||
16 | * The Http client. |
||
17 | * |
||
18 | * @var \Mozammil\Putio\Http\Client |
||
19 | */ |
||
20 | protected $client; |
||
21 | |||
22 | /** |
||
23 | * Initialises the HTTP client. |
||
24 | * |
||
25 | * @param string $token |
||
26 | * |
||
27 | * @return void |
||
|
|||
28 | */ |
||
29 | public function __construct(string $token) |
||
33 | |||
34 | /** |
||
35 | * Files instance. |
||
36 | * |
||
37 | * @return \Mozammil\Putio\Endpoints\Files |
||
38 | */ |
||
39 | public function files() |
||
43 | |||
44 | /** |
||
45 | * Transfers instance. |
||
46 | * |
||
47 | * @return \Mozammil\Putio\Endpoints\Transfers |
||
48 | */ |
||
49 | public function transfers() |
||
53 | |||
54 | /** |
||
55 | * Zips instance. |
||
56 | * |
||
57 | * @return \Mozammil\Putio\Endpoints\Zips |
||
58 | */ |
||
59 | public function zips() |
||
63 | |||
64 | /** |
||
65 | * Feeds instance. |
||
66 | * |
||
67 | * @return \Mozammil\Putio\Endpoints\Feeds |
||
68 | */ |
||
69 | public function feeds() |
||
73 | |||
74 | /** |
||
75 | * Friends instance. |
||
76 | * |
||
77 | * @return \Mozammil\Putio\Endpoints\Friends |
||
78 | */ |
||
79 | public function friends() |
||
83 | |||
84 | /** |
||
85 | * Account instance. |
||
86 | * |
||
87 | * @return \Mozammil\Putio\Endpoints\Account |
||
88 | */ |
||
89 | public function account() |
||
93 | } |
||
94 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.