1 | <?php |
||
21 | class Redirect extends AbstractEntity |
||
22 | { |
||
23 | /** |
||
24 | * @var string|null |
||
25 | * |
||
26 | * @ORM\Column(name="domain", type="string", length=255, nullable=true) |
||
27 | */ |
||
28 | private $domain; |
||
29 | |||
30 | /** |
||
31 | * @var string|null |
||
32 | * |
||
33 | * @ORM\Column(name="origin", type="string", length=255) |
||
34 | * @Assert\NotBlank() |
||
35 | */ |
||
36 | private $origin; |
||
37 | |||
38 | /** |
||
39 | * @var string|null |
||
40 | * |
||
41 | * @ORM\Column(name="note", type="string", length=255, nullable=true) |
||
42 | */ |
||
43 | private $note; |
||
44 | |||
45 | /** |
||
46 | * @var string|null |
||
47 | * |
||
48 | * @ORM\Column(name="target", type="text") |
||
49 | * @Assert\NotBlank() |
||
50 | */ |
||
51 | private $target; |
||
52 | |||
53 | /** |
||
54 | * @var bool |
||
55 | * |
||
56 | * @ORM\Column(name="permanent", type="boolean") |
||
57 | */ |
||
58 | private $permanent; |
||
59 | |||
60 | /** |
||
61 | * @var bool |
||
62 | * |
||
63 | * @ORM\Column(name="is_auto_redirect", type="boolean", nullable=true) |
||
64 | */ |
||
65 | 4 | private $isAutoRedirect = false; |
|
66 | |||
67 | 4 | public function getDomain(): ?string |
|
71 | |||
72 | public function setDomain(?string $domain): Redirect |
||
78 | |||
79 | 6 | public function getOrigin(): ?string |
|
83 | |||
84 | public function setOrigin(?string $origin): Redirect |
||
90 | |||
91 | 8 | public function getNote(): ?string |
|
95 | 8 | ||
96 | public function setNote(?string $note): Redirect |
||
102 | |||
103 | 6 | public function getTarget(): ?string |
|
107 | |||
108 | public function setTarget(?string $target): Redirect |
||
114 | |||
115 | 8 | public function isPermanent(): bool |
|
119 | 8 | ||
120 | public function setPermanent(bool $permanent): Redirect |
||
126 | |||
127 | 6 | public function isAutoRedirect(): ?bool |
|
131 | |||
132 | public function setIsAutoRedirect(?bool $isAutoRedirect): Redirect |
||
138 | |||
139 | 6 | /** |
|
140 | * @Assert\Callback |
||
141 | 6 | * |
|
142 | * @param ExecutionContextInterface $context |
||
143 | 6 | */ |
|
144 | public function validate(ExecutionContextInterface $context): void |
||
152 | } |
||
153 |