src/Entity/Common/BirthCertificate.php line 15

  1. <?php
  2. namespace App\Entity\Common;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use App\Validator\Constraints\Common;
  6. /**
  7.  * Class Passport
  8.  * @package App\Entity\Common
  9.  *
  10.  */
  11. #[ORM\Embeddable]
  12. class BirthCertificate
  13. {
  14.     #[ORM\Column(type'string'nullabletrue)]
  15.     #[Assert\NotBlank(groups: ['full_apply_bc'])]
  16.     private ?string $number null;
  17.     /**
  18.      * @return string|null
  19.      */
  20.     public function getNumber(): ?string
  21.     {
  22.         return $this->number;
  23.     }
  24.     /**
  25.      * @param string|null $number
  26.      */
  27.     public function setNumber(?string $number): void
  28.     {
  29.         $this->number $number;
  30.     }
  31. }