1 | <?php |
||
16 | final class Client |
||
17 | { |
||
18 | /** |
||
19 | * @var LoopInterface |
||
20 | */ |
||
21 | private $loop; |
||
22 | |||
23 | /** |
||
24 | * @var AsyncClient |
||
25 | */ |
||
26 | private $asyncClient; |
||
27 | |||
28 | /** |
||
29 | * @param string $token |
||
30 | * @param array $options |
||
31 | * @return Client |
||
32 | */ |
||
33 | public static function create( |
||
43 | |||
44 | /** |
||
45 | * @param LoopInterface $loop |
||
46 | * @param AsyncClient $asyncClient |
||
47 | * @return Client |
||
48 | */ |
||
49 | public static function createFromClient(LoopInterface $loop, AsyncClient $asyncClient): self |
||
53 | |||
54 | /** |
||
55 | * Client constructor. |
||
56 | * @param LoopInterface $loop |
||
57 | * @param AsyncClient $asyncClient |
||
58 | */ |
||
59 | private function __construct(LoopInterface $loop, AsyncClient $asyncClient) |
||
64 | |||
65 | /** |
||
66 | * @param string $repository |
||
67 | * @return RepositoryInterface |
||
68 | */ |
||
69 | public function repository(string $repository): RepositoryInterface |
||
76 | |||
77 | /** |
||
78 | * @return UserInterface |
||
79 | */ |
||
80 | public function user(): UserInterface |
||
87 | |||
88 | /** |
||
89 | * @param int $id |
||
90 | * @return SSHKeyInterface |
||
91 | */ |
||
92 | public function sshKey(int $id): SSHKeyInterface |
||
99 | |||
100 | /** |
||
101 | * @return array |
||
102 | */ |
||
103 | public function hooks(): array |
||
112 | |||
113 | /** |
||
114 | * @return array |
||
115 | */ |
||
116 | public function repositories(): array |
||
125 | |||
126 | /** |
||
127 | * @return array |
||
128 | */ |
||
129 | public function accounts(): array |
||
138 | |||
139 | /** |
||
140 | * @return array |
||
141 | */ |
||
142 | public function broadcasts(): array |
||
151 | } |
||
152 |