| 1 | <?php |
||
| 8 | final class DockerRegistryManifestsRepository |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var DockerRegistryClientInterface |
||
| 12 | */ |
||
| 13 | private $client; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Image name. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $image; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Tag name. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $tag; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * DockerRegistryManifestsRepository constructor. |
||
| 31 | * |
||
| 32 | * @param DockerRegistryClientInterface $client |
||
| 33 | * @param string $image |
||
| 34 | * @param string $tag |
||
| 35 | */ |
||
| 36 | public function __construct(DockerRegistryClientInterface $client, string $image, string $tag) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Gets image name. |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getImage(): string |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Gets tag name. |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getTag(): string |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get available tag details. |
||
| 65 | * |
||
| 66 | * @return Manifest |
||
| 67 | */ |
||
| 68 | public function get(): Manifest |
||
| 84 | } |
||
| 85 |