src/Entity/ContactData.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Validator\Constraints\IsEqualToCurrentCode;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. class ContactData
  7. {
  8.     /**
  9.      * @var ?string
  10.      */
  11.     private $name '';
  12.     /**
  13.      * @Assert\Email
  14.      * @var ?string
  15.      */
  16.     private $email;
  17.     /**
  18.      * @Assert\Length(min = 3, max = 1500)
  19.      * @var ?string
  20.      */
  21.     private $content;
  22.     /**
  23.      * @IsEqualToCurrentCode
  24.      * @var ?string
  25.      */
  26.     private $rtcp;
  27.     /**
  28.      */
  29.     public function getName(): ?string
  30.     {
  31.         return $this->name;
  32.     }
  33.     /**
  34.      */
  35.     public function setName(?string $name): void
  36.     {
  37.         $this->name $name;
  38.     }
  39.     /**
  40.      */
  41.     public function getContent(): ?string
  42.     {
  43.         return $this->content;
  44.     }
  45.     /**
  46.      */
  47.     public function setContent(?string $content): void
  48.     {
  49.         $this->content $content;
  50.     }
  51.     /**
  52.      */
  53.     public function getEmail(): ?string
  54.     {
  55.         return $this->email;
  56.     }
  57.     /**
  58.      */
  59.     public function setEmail(?string $email): void
  60.     {
  61.         $this->email $email;
  62.     }
  63.     /**
  64.      */
  65.     public function getRtcp(): ?string
  66.     {
  67.         return $this->rtcp;
  68.     }
  69.     /**
  70.      */
  71.     public function setRtcp(?string $rtcp): void
  72.     {
  73.         $this->rtcp $rtcp;
  74.     }
  75. }