src/Entity/BillingAddress.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity()
  7.  */
  8. class BillingAddress extends Address
  9. {
  10.     /**
  11.      * @Assert\Length(
  12.      *      min = 2,
  13.      *      max = 255,
  14.      *      minMessage = "validators.BillingAddress.companyName.minMessage",
  15.      *      maxMessage = "validators.BillingAddress.companyName.maxMessage",
  16.      *
  17.      * )
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $companyName;
  21.     /**
  22.      * @Assert\Length(
  23.      *      min = 2,
  24.      *      max = 50,
  25.      *      minMessage = "validators.BillingAddress.companyRegNumber.minMessage",
  26.      *      maxMessage = "validators.BillingAddress.companyRegNumber.maxMessage",
  27.      *
  28.      * )
  29.      * @ORM\Column(type="string", length=31, nullable=true, options={"comment":"ICO"})
  30.      */
  31.     private $companyRegNumber;
  32.     /**
  33.      * @Assert\Length(
  34.      *      min = 2,
  35.      *      max = 50,
  36.      *      minMessage = "validators.BillingAddress.companyVatNumber.minMessage",
  37.      *      maxMessage = "validators.BillingAddress.companyVatNumber.maxMessage",
  38.      *
  39.      * )
  40.      * @ORM\Column(type="string", length=31, nullable=true, options={"comment":"DIC"})
  41.      */
  42.     private $vatNumber;
  43.     public function getCompanyName(): ?string
  44.     {
  45.         return $this->companyName;
  46.     }
  47.     public function setCompanyName($companyName): self
  48.     {
  49.         $this->companyName $companyName;
  50.         return $this;
  51.     }
  52.     public function getCompanyRegNumber(): ?string
  53.     {
  54.         return $this->companyRegNumber;
  55.     }
  56.     public function setCompanyRegNumber($companyRegNumber): self
  57.     {
  58.         $this->companyRegNumber $companyRegNumber;
  59.         return $this;
  60.     }
  61.     public function getVatNumber(): ?string
  62.     {
  63.         return $this->vatNumber;
  64.     }
  65.     public function setVatNumber($vatNumber): self
  66.     {
  67.         $this->vatNumber $vatNumber;
  68.         return $this;
  69.     }
  70. }