<?php
namespace App\Entity;
use App\Repository\CvRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Uid\Uuid;
/**
* @ORM\Entity(repositoryClass=CvRepository::class)
*/
class Cv
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $uuid;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $token;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $slug;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $statut = false;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pseudo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $photo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $telephone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cv;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $parcours;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $competence;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $aspiration;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="cvs")
*/
private $user;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $couverture;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
*/
private $validedAt;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $moderate = false;
/**
* @ORM\ManyToOne(targetEntity=Grade::class, inversedBy="cvs")
*/
private $grade;
/**
* @ORM\ManyToOne(targetEntity=Direction::class, inversedBy="cvs")
*/
private $direction;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $fake;
public function __construct()
{
$this->uuid = Uuid::v4();
}
public function getId(): ?int
{
return $this->id;
}
public function getUuid(): ?string
{
return $this->uuid;
}
public function setUuid(?string $uuid): self
{
$this->uuid = $uuid;
return $this;
}
public function getToken(): ?string
{
return $this->token;
}
public function setToken(?string $token): self
{
$this->token = $token;
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
return $this;
}
public function isStatut(): ?bool
{
return $this->statut;
}
public function setStatut(?bool $statut): self
{
$this->statut = $statut;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeImmutable $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 getPseudo(): ?string
{
return $this->pseudo;
}
public function setPseudo(?string $pseudo): self
{
$this->pseudo = $pseudo;
return $this;
}
public function getPhoto(): ?string
{
return $this->photo;
}
public function setPhoto(?string $photo): self
{
$this->photo = $photo;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getCv(): ?string
{
return $this->cv;
}
public function setCv(?string $cv): self
{
$this->cv = $cv;
return $this;
}
public function getParcours(): ?string
{
return $this->parcours;
}
public function setParcours(?string $parcours): self
{
$this->parcours = $parcours;
return $this;
}
public function getCompetence(): ?string
{
return $this->competence;
}
public function setCompetence(?string $competence): self
{
$this->competence = $competence;
return $this;
}
public function getAspiration(): ?string
{
return $this->aspiration;
}
public function setAspiration(?string $aspiration): self
{
$this->aspiration = $aspiration;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function isCouverture(): ?bool
{
return $this->couverture;
}
public function setCouverture(?bool $couverture): self
{
$this->couverture = $couverture;
return $this;
}
public function getValidedAt(): ?\DateTimeImmutable
{
return $this->validedAt;
}
public function setValidedAt(?\DateTimeImmutable $validedAt): self
{
$this->validedAt = $validedAt;
return $this;
}
public function isModerate(): ?bool
{
return $this->moderate;
}
public function setModerate(?bool $moderate): self
{
$this->moderate = $moderate;
return $this;
}
public function getGrade(): ?Grade
{
return $this->grade;
}
public function setGrade(?Grade $grade): self
{
$this->grade = $grade;
return $this;
}
public function getDirection(): ?Direction
{
return $this->direction;
}
public function setDirection(?Direction $direction): self
{
$this->direction = $direction;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function isFake(): ?bool
{
return $this->fake;
}
public function setFake(?bool $fake): self
{
$this->fake = $fake;
return $this;
}
}