src/Entity/Gos/AddressTmp.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\Gos\AddressTmpRepository"))
  7.  */
  8. class AddressTmp
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @var string
  18.      *
  19.      * @ORM\Column(name="firstName", type="string", length=50, nullable=true)
  20.      * @Assert\Length(max = 50)
  21.      */
  22.     private $firstName;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="lastName", type="string", length=50, nullable=true)
  27.      * @Assert\Length(max = 50)
  28.      */
  29.     private $lastName;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="companyName", type="string", length=255, nullable=true)
  34.      */
  35.     private $companyName;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="nip", type="string", length=20, nullable=true)
  40.      * @Assert\Length(max = 20)
  41.      */
  42.     private $nip;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="address", type="string", length=255, nullable=true)
  47.      */
  48.     private $address;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="city", type="string", length=100, nullable=true)
  53.      * @Assert\Length(max = 100)
  54.      */
  55.     private $city;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="postalCode", type="string", length=9, nullable=true)
  60.      * @Assert\Length(max = 9)
  61.      */
  62.     private $postalCode;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="phone", type="string", length=30, nullable=true)
  67.      * @Assert\Length(max = 30)
  68.      */
  69.     private $phone;
  70.     /**
  71.      * @var string
  72.      *
  73.      * @ORM\Column(name="position", type="string", length=255, nullable=true)
  74.      */
  75.     private $position;
  76.     /**
  77.      * @var string
  78.      *
  79.      * @ORM\Column(name="correspondenceName", type="string", length=255, nullable=true)
  80.      */
  81.     private $correspondenceName;
  82.     /**
  83.      * @var string
  84.      *
  85.      * @ORM\Column(name="correspondenceAddress", type="string", length=255, nullable=true)
  86.      */
  87.     private $correspondenceAddress;
  88.     /**
  89.      * @var string
  90.      *
  91.      * @ORM\Column(name="correspondenceCity", type="string", length=255, nullable=true)
  92.      */
  93.     private $correspondenceCity;
  94.     /**
  95.      * @var string
  96.      *
  97.      * @ORM\Column(name="correspondencePostalcode", type="string", length=9, nullable=true)
  98.      * @Assert\Length(max = 9)
  99.      */
  100.     private $correspondencePostalcode;
  101.     /**
  102.      * @ORM\OneToOne(targetEntity="App\Entity\Gos\User", mappedBy="addressTmp")
  103.      */
  104.     private $user;
  105.     public function getId(): ?int
  106.     {
  107.         return $this->id;
  108.     }
  109.     public function getFirstName(): ?string
  110.     {
  111.         return $this->firstName;
  112.     }
  113.     public function setFirstName(?string $firstName): self
  114.     {
  115.         $this->firstName $firstName;
  116.         return $this;
  117.     }
  118.     public function getLastName(): ?string
  119.     {
  120.         return $this->lastName;
  121.     }
  122.     public function setLastName(?string $lastName): self
  123.     {
  124.         $this->lastName $lastName;
  125.         return $this;
  126.     }
  127.     public function getCompanyName(): ?string
  128.     {
  129.         return $this->companyName;
  130.     }
  131.     public function setCompanyName(?string $companyName): self
  132.     {
  133.         $this->companyName $companyName;
  134.         return $this;
  135.     }
  136.     public function getNip(): ?string
  137.     {
  138.         return $this->nip;
  139.     }
  140.     public function setNip(?string $nip): self
  141.     {
  142.         $this->nip $nip;
  143.         return $this;
  144.     }
  145.     public function getAddress(): ?string
  146.     {
  147.         return $this->address;
  148.     }
  149.     public function setAddress(?string $address): self
  150.     {
  151.         $this->address $address;
  152.         return $this;
  153.     }
  154.     public function getCity(): ?string
  155.     {
  156.         return $this->city;
  157.     }
  158.     public function setCity(?string $city): self
  159.     {
  160.         $this->city $city;
  161.         return $this;
  162.     }
  163.     public function getPostalCode(): ?string
  164.     {
  165.         return $this->postalCode;
  166.     }
  167.     public function setPostalCode(?string $postalCode): self
  168.     {
  169.         $this->postalCode $postalCode;
  170.         return $this;
  171.     }
  172.     public function getPhone(): ?string
  173.     {
  174.         return $this->phone;
  175.     }
  176.     public function setPhone(?string $phone): self
  177.     {
  178.         $this->phone $phone;
  179.         return $this;
  180.     }
  181.     public function getPosition(): ?string
  182.     {
  183.         return $this->position;
  184.     }
  185.     public function setPosition(?string $position): self
  186.     {
  187.         $this->position $position;
  188.         return $this;
  189.     }
  190.     public function getCorrespondenceName(): ?string
  191.     {
  192.         return $this->correspondenceName;
  193.     }
  194.     public function setCorrespondenceName(?string $correspondenceName): self
  195.     {
  196.         $this->correspondenceName $correspondenceName;
  197.         return $this;
  198.     }
  199.     public function getCorrespondenceAddress(): ?string
  200.     {
  201.         return $this->correspondenceAddress;
  202.     }
  203.     public function setCorrespondenceAddress(?string $correspondenceAddress): self
  204.     {
  205.         $this->correspondenceAddress $correspondenceAddress;
  206.         return $this;
  207.     }
  208.     public function getCorrespondenceCity(): ?string
  209.     {
  210.         return $this->correspondenceCity;
  211.     }
  212.     public function setCorrespondenceCity(?string $correspondenceCity): self
  213.     {
  214.         $this->correspondenceCity $correspondenceCity;
  215.         return $this;
  216.     }
  217.     public function getCorrespondencePostalcode(): ?string
  218.     {
  219.         return $this->correspondencePostalcode;
  220.     }
  221.     public function setCorrespondencePostalcode(?string $correspondencePostalcode): self
  222.     {
  223.         $this->correspondencePostalcode $correspondencePostalcode;
  224.         return $this;
  225.     }
  226.     public function getUser(): ?User
  227.     {
  228.         return $this->user;
  229.     }
  230.     public function setUser(?User $user): self
  231.     {
  232.         $this->user $user;
  233.         // set (or unset) the owning side of the relation if necessary
  234.         $newAddressTmp $user === null null $this;
  235.         if ($newAddressTmp !== $user->getAddressTmp()) {
  236.             $user->setAddressTmp($newAddressTmp);
  237.         }
  238.         return $this;
  239.     }
  240. }