| 1 | <?php |
||
| 8 | class LocalDockerRegistryClient implements DockerRegistryClientInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $url; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | private $port; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Client |
||
| 22 | */ |
||
| 23 | private $client; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $version; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * DockerRegistryApiClient constructor. |
||
| 32 | * |
||
| 33 | * @param string $url |
||
| 34 | * @param int $port |
||
| 35 | * @param string $version |
||
| 36 | */ |
||
| 37 | public function __construct(string $url, int $port, string $version) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getUrl(): string |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return int |
||
| 58 | */ |
||
| 59 | public function getPort(): int |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getVersion(): string |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return Client |
||
| 74 | */ |
||
| 75 | public function getClient(): Client |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Proxies method calls to the Http client instance. |
||
| 82 | * |
||
| 83 | * @param $name |
||
| 84 | * @param $arguments |
||
| 85 | * |
||
| 86 | * @return mixed |
||
| 87 | * @codeCoverageIgnore |
||
| 88 | */ |
||
| 89 | public function __call($name, $arguments) |
||
| 93 | } |
||
| 94 |