1 | <?php |
||
28 | final class VichSerializableField |
||
29 | { |
||
30 | /** @var string */ |
||
31 | private $field; |
||
32 | |||
33 | /** @var bool */ |
||
34 | private $includeHost = true; |
||
35 | |||
36 | /** |
||
37 | * @param mixed[] $options |
||
38 | * |
||
39 | * @throws LogicException |
||
40 | * @throws InvalidArgumentException |
||
41 | */ |
||
42 | public function __construct(array $options) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getField(): string |
||
75 | |||
76 | /** |
||
77 | * @param string $field |
||
78 | * |
||
79 | * @return $this |
||
80 | */ |
||
81 | public function setField(string $field): self |
||
87 | |||
88 | /** |
||
89 | * @return bool |
||
90 | */ |
||
91 | public function isIncludeHost(): bool |
||
95 | |||
96 | /** |
||
97 | * @param bool $includeHost |
||
98 | * |
||
99 | * @return $this |
||
100 | */ |
||
101 | public function setIncludeHost(bool $includeHost): self |
||
107 | } |
||
108 |