Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class EnvVariable implements \JsonSerializable |
||
6 | { |
||
7 | /** @var string */ |
||
8 | private $value; |
||
9 | /** @var string */ |
||
10 | private $type; |
||
11 | |||
12 | /** |
||
13 | * EnvironmentVariable constructor. |
||
14 | * @param string $value |
||
15 | * @param string $type |
||
16 | */ |
||
17 | public function __construct(string $value, string $type) |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Specify data which should be serialized to JSON |
||
25 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
26 | * @return array data which can be serialized by <b>json_encode</b>, |
||
27 | * which is a value of any type other than a resource. |
||
28 | * @since 5.4.0 |
||
29 | */ |
||
30 | public function jsonSerialize(): array |
||
38 |