1 | <?php |
||
5 | final class Manifest |
||
6 | { |
||
7 | /** |
||
8 | * Schema version. |
||
9 | * |
||
10 | * @var int |
||
11 | */ |
||
12 | private $schema; |
||
13 | |||
14 | /** |
||
15 | * Image name. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private $name; |
||
20 | |||
21 | /** |
||
22 | * Tag name. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $tag; |
||
27 | |||
28 | /** |
||
29 | * Architecture used. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $architecture; |
||
34 | |||
35 | /** |
||
36 | * Layers that make the tagged image. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | private $layers; |
||
41 | |||
42 | /** |
||
43 | * List of changes made. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | private $history; |
||
48 | |||
49 | /** |
||
50 | * List of signatures. |
||
51 | * |
||
52 | * @var array |
||
53 | */ |
||
54 | private $signatures; |
||
55 | |||
56 | /** |
||
57 | * Manifest constructor. |
||
58 | * |
||
59 | * @param int $schema |
||
60 | * @param string $name |
||
61 | * @param string $tag |
||
62 | * @param string $architecture |
||
63 | * @param array $layers |
||
64 | * @param array $history |
||
65 | * @param array $signatures |
||
66 | */ |
||
67 | public function __construct(int $schema, string $name, string $tag, string $architecture, array $layers, array $history, array $signatures) |
||
77 | |||
78 | /** |
||
79 | * Gets the schema. |
||
80 | * |
||
81 | * @return int |
||
82 | */ |
||
83 | public function getSchema(): int |
||
87 | |||
88 | /** |
||
89 | * Gets the image name. |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getName(): string |
||
97 | |||
98 | /** |
||
99 | * Gets the tag. |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getTag(): string |
||
107 | |||
108 | /** |
||
109 | * Gets the architecture. |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getArchitecture(): string |
||
117 | |||
118 | /** |
||
119 | * Gets the layers. |
||
120 | * |
||
121 | * @return array |
||
122 | */ |
||
123 | public function getLayers(): array |
||
127 | |||
128 | /** |
||
129 | * Gets the history of changes. |
||
130 | * |
||
131 | * @return array |
||
132 | */ |
||
133 | public function getHistory(): array |
||
137 | |||
138 | /** |
||
139 | * Gets the signatures. |
||
140 | * |
||
141 | * @return array |
||
142 | */ |
||
143 | public function getSignatures(): array |
||
147 | } |
||
148 |