src/Entity/Gos/UserTemporary.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\Gos\UserTemporaryRepository")
  6.  */
  7. class UserTemporary
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", nullable=true)
  17.      */
  18.     private $email;
  19.     /**
  20.      * @ORM\Column(type="string", nullable=true)
  21.      */
  22.     private $firstName;
  23.     /**
  24.      * @ORM\Column(type="string", nullable=true)
  25.      */
  26.     private $lastName;
  27.     /**
  28.      * @ORM\Column(type="string", length=30, nullable=true)
  29.      */
  30.     private $phoneNumber;
  31.     /**
  32.      * @ORM\Column(type="string", length=5, nullable=true)
  33.      */
  34.     private $phoneNumberPrefix;
  35.     /**
  36.      * @ORM\OneToOne(targetEntity="App\Entity\Gos\Cart", mappedBy="userTemporary", cascade={"persist"})
  37.      */
  38.     private $cart;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\Address", inversedBy="userTemporary")
  41.      * @ORM\JoinColumn()
  42.      */
  43.     private $address;
  44.     /**
  45.      * @ORM\Column(type="boolean", nullable=true)
  46.      */
  47.     private $isCreated;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getIsCreated(): ?bool
  53.     {
  54.         return $this->isCreated;
  55.     }
  56.     public function setIsCreated(?bool $isCreated): self
  57.     {
  58.         $this->isCreated $isCreated;
  59.         return $this;
  60.     }
  61.     public function getEmail(): ?string
  62.     {
  63.         return $this->email;
  64.     }
  65.     public function setEmail(?string $email): self
  66.     {
  67.         $this->email $email;
  68.         return $this;
  69.     }
  70.     public function getFirstName(): ?string
  71.     {
  72.         return $this->firstName;
  73.     }
  74.     public function setFirstName(?string $firstName): self
  75.     {
  76.         $this->firstName $firstName;
  77.         return $this;
  78.     }
  79.     public function getLastName(): ?string
  80.     {
  81.         return $this->lastName;
  82.     }
  83.     public function setLastName(?string $lastName): self
  84.     {
  85.         $this->lastName $lastName;
  86.         return $this;
  87.     }
  88.     public function getPhoneNumber(): ?string
  89.     {
  90.         return $this->phoneNumber;
  91.     }
  92.     public function setPhoneNumber(?string $phoneNumber): self
  93.     {
  94.         $this->phoneNumber $phoneNumber;
  95.         return $this;
  96.     }
  97.     public function getPhoneNumberPrefix(): ?string
  98.     {
  99.         return $this->phoneNumberPrefix;
  100.     }
  101.     public function setPhoneNumberPrefix(?string $phoneNumberPrefix): self
  102.     {
  103.         $this->phoneNumberPrefix $phoneNumberPrefix;
  104.         return $this;
  105.     }
  106.     public function getCart(): ?Cart
  107.     {
  108.         return $this->cart;
  109.     }
  110.     public function setCart(?Cart $cart): self
  111.     {
  112.         $this->cart $cart;
  113.         // set (or unset) the owning side of the relation if necessary
  114.         $newUserTemporary $cart === null null $this;
  115.         if ($newUserTemporary !== $cart->getUserTemporary()) {
  116.             $cart->setUserTemporary($newUserTemporary);
  117.         }
  118.         return $this;
  119.     }
  120.     public function getAddress(): ?Address
  121.     {
  122.         return $this->address;
  123.     }
  124.     public function setAddress(?Address $address): self
  125.     {
  126.         $this->address $address;
  127.         return $this;
  128.     }
  129. }