<?php
namespace App\Entity;
use App\Repository\UserEnseignantAccountDetailRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass=UserEnseignantAccountDetailRepository::class)
*/
class UserEnseignantAccountDetail
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=User::class, inversedBy="userEnseignantAccountDetail")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\Column(type="json")
*/
private $situation_pro = [false,false,false,false];
/**
* @ORM\Column(type="date", nullable=true)
*/
private $visite_medicale;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse_entreprise;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $cp_entreprise;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ville_entreprise;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $siren;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $numero_tva;
/**
* @ORM\Column(type="datetime")
* @Gedmo\Timestampable(on="create")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime")
* @Gedmo\Timestampable(on="update")
*/
private $updatedAt;
/**
* @ORM\Column(type="string", length=255)
*/
private $statut = "salarie";
/**
* @ORM\Column(type="float", nullable=true)
*/
private $salaire;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $location;
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 getSituationPro(): array
{
return $this->situation_pro;
}
public function setSituationPro(array $situation_pro): self
{
$this->situation_pro = $situation_pro;
return $this;
}
public function getVisiteMedicale(): ?\DateTimeInterface
{
return $this->visite_medicale;
}
public function setVisiteMedicale(?\DateTimeInterface $visite_medicale): self
{
$this->visite_medicale = $visite_medicale;
return $this;
}
public function getAdresseEntreprise(): ?string
{
return $this->adresse_entreprise;
}
public function setAdresseEntreprise(?string $adresse_entreprise): self
{
$this->adresse_entreprise = $adresse_entreprise;
return $this;
}
public function getCpEntreprise(): ?int
{
return $this->cp_entreprise;
}
public function setCpEntreprise(?int $cp_entreprise): self
{
$this->cp_entreprise = $cp_entreprise;
return $this;
}
public function getVilleEntreprise(): ?string
{
return $this->ville_entreprise;
}
public function setVilleEntreprise(?string $ville_entreprise): self
{
$this->ville_entreprise = $ville_entreprise;
return $this;
}
public function getSiren(): ?string
{
return $this->siren;
}
public function setSiren(?string $siren): self
{
$this->siren = $siren;
return $this;
}
public function getNumeroTva(): ?string
{
return $this->numero_tva;
}
public function setNumeroTva(?string $numero_tva): self
{
$this->numero_tva = $numero_tva;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface {
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self {
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface {
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self {
$this->updatedAt = $updatedAt;
return $this;
}
public function getStatut(): ?string
{
return $this->statut;
}
public function isIndependant():bool {
return $this->getStatut() == "independant";
}
public function isSalarie():bool {
return $this->getStatut() == "salarie";
}
public function setStatut(string $statut): self
{
$this->statut = $statut;
return $this;
}
public function getSalaire(): ?float
{
return $this->salaire;
}
public function setSalaire(?float $salaire): self
{
$this->salaire = $salaire;
return $this;
}
public function getLocation(): ?float
{
return $this->location;
}
public function setLocation(?float $location): self
{
$this->location = $location;
return $this;
}
}