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