<?php
namespace App\Entity;
use App\Entity\{User, Country};
use App\Repository\ClientRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ClientRepository::class)
*/
class Client
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=User::class, inversedBy="client", cascade={"remove"})
* @ORM\JoinColumn(nullable=true)
*/
private $user;
/**
* @ORM\OneToOne(targetEntity=Collaborateur::class, mappedBy="client")
*/
private $collaborateurAccount;
/**
* @ORM\Column(type="string", length=14, nullable=true)
*/
private $siret;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $entrepriseName;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $aboutMe;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $birthday;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $birthplace;
/**
* @ORM\Column(type="string", length=20, nullable=true)
*/
private $mobilePhone;
/**
* @ORM\Column(type="string", length=20, nullable=true)
*/
private $landlinePhone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $address;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $address1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $postalCode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $city;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $longitude;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $latitude;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $facebook;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $twitter;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $instagram;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $linkedin;
/**
* @ORM\Column(type="boolean")
*/
private $agreeTerms;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getCollaborateurAccount(): ?Collaborateur
{
return $this->collaborateurAccount;
}
public function setCollaborateurAccount(?Collaborateur $collaborateurAccount): self
{
// unset the owning side of the relation if necessary
if ($collaborateurAccount === null && $this->collaborateurAccount !== null) {
$this->collaborateurAccount->setClient(null);
}
// set the owning side of the relation if necessary
if ($collaborateurAccount !== null && $collaborateurAccount->getClient() !== $this) {
$collaborateurAccount->setClient($this);
}
$this->collaborateurAccount = $collaborateurAccount;
return $this;
}
public function getSiret(): ?string
{
return $this->siret;
}
public function setSiret(?string $siret): self
{
$this->siret = $siret;
return $this;
}
public function getEntrepriseName(): ?string
{
return $this->entrepriseName;
}
public function setEntrepriseName(?string $entrepriseName): self
{
$this->entrepriseName = $entrepriseName;
return $this;
}
public function getAboutMe(): ?string
{
return $this->aboutMe;
}
public function setAboutMe(?string $aboutMe): self
{
$this->aboutMe = $aboutMe;
return $this;
}
public function getBirthday(): ?\DateTimeInterface
{
return $this->birthday;
}
public function setBirthday(?\DateTimeInterface $birthday): self
{
$this->birthday = $birthday;
return $this;
}
public function getBirthplace(): ?string
{
return $this->birthplace;
}
public function setBirthplace(?string $birthplace): self
{
$this->birthplace = $birthplace;
return $this;
}
public function getMobilePhone(): ?string
{
return $this->mobilePhone;
}
public function setMobilePhone(?string $mobilePhone): self
{
$this->mobilePhone = $mobilePhone;
return $this;
}
public function getLandlinePhone(): ?string
{
return $this->landlinePhone;
}
public function setLandlinePhone(?string $landlinePhone): self
{
$this->landlinePhone = $landlinePhone;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): self
{
$this->address = $address;
return $this;
}
public function getAddress1(): ?string
{
return $this->address1;
}
public function setAddress1(?string $address1): self
{
$this->address1 = $address1;
return $this;
}
public function getPostalCode(): ?string
{
return $this->postalCode;
}
public function setPostalCode(?string $postalCode): self
{
$this->postalCode = $postalCode;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getLongitude(): ?string
{
return $this->longitude;
}
public function setLongitude(?string $longitude): self
{
$this->longitude = $longitude;
return $this;
}
public function getLatitude(): ?string
{
return $this->latitude;
}
public function setLatitude(?string $latitude): self
{
$this->latitude = $latitude;
return $this;
}
public function getFacebook(): ?string
{
return $this->facebook;
}
public function setFacebook(?string $facebook): self
{
$this->facebook = $facebook;
return $this;
}
public function getTwitter(): ?string
{
return $this->twitter;
}
public function setTwitter(?string $twitter): self
{
$this->twitter = $twitter;
return $this;
}
public function getInstagram(): ?string
{
return $this->instagram;
}
public function setInstagram(?string $instagram): self
{
$this->instagram = $instagram;
return $this;
}
public function getLinkedin(): ?string
{
return $this->linkedin;
}
public function setLinkedin(?string $linkedin): self
{
$this->linkedin = $linkedin;
return $this;
}
public function isAgreeTerms(): ?bool
{
return $this->agreeTerms;
}
public function setAgreeTerms(bool $agreeTerms): self
{
$this->agreeTerms = $agreeTerms;
return $this;
}
}