<?php
namespace App\Entity\Gos;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\Gos\UserTemporaryRepository")
*/
class UserTemporary
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $email;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $firstName;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $lastName;
/**
* @ORM\Column(type="string", length=30, nullable=true)
*/
private $phoneNumber;
/**
* @ORM\Column(type="string", length=5, nullable=true)
*/
private $phoneNumberPrefix;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Gos\Cart", mappedBy="userTemporary", cascade={"persist"})
*/
private $cart;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Gos\Address", inversedBy="userTemporary")
* @ORM\JoinColumn()
*/
private $address;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isCreated;
public function getId(): ?int
{
return $this->id;
}
public function getIsCreated(): ?bool
{
return $this->isCreated;
}
public function setIsCreated(?bool $isCreated): self
{
$this->isCreated = $isCreated;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(?string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
public function getPhoneNumber(): ?string
{
return $this->phoneNumber;
}
public function setPhoneNumber(?string $phoneNumber): self
{
$this->phoneNumber = $phoneNumber;
return $this;
}
public function getPhoneNumberPrefix(): ?string
{
return $this->phoneNumberPrefix;
}
public function setPhoneNumberPrefix(?string $phoneNumberPrefix): self
{
$this->phoneNumberPrefix = $phoneNumberPrefix;
return $this;
}
public function getCart(): ?Cart
{
return $this->cart;
}
public function setCart(?Cart $cart): self
{
$this->cart = $cart;
// set (or unset) the owning side of the relation if necessary
$newUserTemporary = $cart === null ? null : $this;
if ($newUserTemporary !== $cart->getUserTemporary()) {
$cart->setUserTemporary($newUserTemporary);
}
return $this;
}
public function getAddress(): ?Address
{
return $this->address;
}
public function setAddress(?Address $address): self
{
$this->address = $address;
return $this;
}
}