1 | <?php |
||
8 | final class Group implements \JsonSerializable |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $field; |
||
14 | |||
15 | /** |
||
16 | * @var bool |
||
17 | */ |
||
18 | private $applied; |
||
19 | |||
20 | /** |
||
21 | * @var UriInterface |
||
22 | */ |
||
23 | private $uri; |
||
24 | |||
25 | /** |
||
26 | * Group constructor. |
||
27 | * @param string $field |
||
28 | * @param bool $applied |
||
29 | * @param UriInterface $uri |
||
30 | */ |
||
31 | public function __construct(string $field, bool $applied, UriInterface $uri = null) |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getField(): string |
||
45 | |||
46 | /** |
||
47 | * @return bool |
||
48 | */ |
||
49 | public function isApplied(): bool |
||
53 | |||
54 | /** |
||
55 | * @return UriInterface |
||
56 | */ |
||
57 | public function getToggleUri(): ?UriInterface |
||
61 | |||
62 | /** |
||
63 | * @inheritDoc |
||
64 | */ |
||
65 | public function jsonSerialize() |
||
80 | } |
||
81 |