| Total Complexity | 10 |
| Total Lines | 88 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class FeedbackDto |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @Assert\NotBlank() |
||
| 13 | * @Assert\Length(min="2", max="100") |
||
| 14 | */ |
||
| 15 | private ?string $from_name; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @Assert\NotBlank() |
||
| 19 | * @Assert\Email() |
||
| 20 | * @Assert\Length(min="6") |
||
| 21 | */ |
||
| 22 | private ?string $from_email; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @Assert\NotBlank() |
||
| 26 | * @Assert\Email() |
||
| 27 | * @Assert\Length(min="6") |
||
| 28 | */ |
||
| 29 | private ?string $to_email; |
||
| 30 | |||
| 31 | private ?string $subject; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @Assert\NotBlank() |
||
| 35 | * @Assert\Length(min="14") |
||
| 36 | */ |
||
| 37 | private ?string $message; |
||
| 38 | |||
| 39 | public function getFromName(): ?string |
||
| 40 | { |
||
| 41 | return $this->from_name; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function setFromName(string $from_name): self |
||
| 45 | { |
||
| 46 | $this->from_name = $from_name; |
||
| 47 | |||
| 48 | return $this; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getFromEmail(): ?string |
||
| 52 | { |
||
| 53 | return $this->from_email; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function setFromEmail(string $from_email): self |
||
| 57 | { |
||
| 58 | $this->from_email = $from_email; |
||
| 59 | |||
| 60 | return $this; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getToEmail(): ?string |
||
| 64 | { |
||
| 65 | return $this->to_email; |
||
| 66 | } |
||
| 67 | |||
| 68 | public function setToEmail(string $to_email): self |
||
| 73 | } |
||
| 74 | |||
| 75 | public function getSubject(): ?string |
||
| 76 | { |
||
| 77 | return $this->subject; |
||
| 78 | } |
||
| 79 | |||
| 80 | public function setSubject(string $subject): self |
||
| 85 | } |
||
| 86 | |||
| 87 | public function getMessage(): ?string |
||
| 88 | { |
||
| 89 | return $this->message; |
||
| 90 | } |
||
| 91 | |||
| 92 | public function setMessage(string $message): self |
||
| 97 | } |
||
| 98 | } |
||
| 99 |