forked from beluga-php/docker-php-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDistributionInspect.php
More file actions
75 lines (65 loc) · 1.97 KB
/
Copy pathDistributionInspect.php
File metadata and controls
75 lines (65 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
declare(strict_types=1);
namespace Docker\API\Model;
class DistributionInspect extends \ArrayObject
{
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* A descriptor struct containing digest, media type, and size, as defined in
* the [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
*
* @var OCIDescriptor|null
*/
protected $descriptor;
/**
* An array containing all platforms supported by the image.
*
* @var list<OCIPlatform>|null
*/
protected $platforms;
/**
* A descriptor struct containing digest, media type, and size, as defined in
* the [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
*/
public function getDescriptor(): ?OCIDescriptor
{
return $this->descriptor;
}
/**
* A descriptor struct containing digest, media type, and size, as defined in
* the [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
*/
public function setDescriptor(?OCIDescriptor $descriptor): self
{
$this->initialized['descriptor'] = true;
$this->descriptor = $descriptor;
return $this;
}
/**
* An array containing all platforms supported by the image.
*
* @return list<OCIPlatform>|null
*/
public function getPlatforms(): ?array
{
return $this->platforms;
}
/**
* An array containing all platforms supported by the image.
*
* @param list<OCIPlatform>|null $platforms
*/
public function setPlatforms(?array $platforms): self
{
$this->initialized['platforms'] = true;
$this->platforms = $platforms;
return $this;
}
}