Total Complexity | 4 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Files |
||
16 | { |
||
17 | /** |
||
18 | * @var ClientInterface |
||
19 | */ |
||
20 | private $client; |
||
21 | |||
22 | /** |
||
23 | * @var FileFactory |
||
24 | */ |
||
25 | private $factory; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | private $roomId; |
||
31 | |||
32 | /** |
||
33 | * Files constructor. |
||
34 | * |
||
35 | * @param ClientInterface $client |
||
36 | * @param FileFactory $factory |
||
37 | * @param int $roomId |
||
38 | */ |
||
39 | public function __construct(ClientInterface $client, FileFactory $factory, int $roomId) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param null $accountId |
||
|
|||
48 | * |
||
49 | * @return CollectionInterface |
||
50 | */ |
||
51 | public function show($accountId = null) |
||
64 | ) |
||
65 | ); |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * @param $id |
||
70 | * @param $downloadLink |
||
71 | * |
||
72 | * @return File |
||
73 | */ |
||
74 | public function detail($id, $downloadLink = false) |
||
86 |