<?php
namespace App\Entity\Cvs;
use App\Entity\Core\Users;
use App\Entity\Core\Agencies;
use Doctrine\DBAL\Types\Types;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
/**
* Candidates has experiences
*
* @ORM\Table("cvs_candidates_has_experiences")
* @ORM\Entity(repositoryClass="App\Repository\Cvs\CandidatesHasExperiencesRepository")
* @ORM\HasLifecycleCallbacks()
*/
class CandidatesHasExperiences
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"})
*/
private $createdAt;
/**
* @var string
*
* @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"})
*/
private $updatedAt;
/**
* @var string
*
* @ORM\Column(name="start", type="date", nullable=true, options={"comment":"Date de début"})
*/
private $start;
/**
* @var string
*
* @ORM\Column(name="end", type="date", nullable=true, options={"comment":"Date de début"})
*/
private $end;
/**
* @var string
*
* @ORM\Column(name="today", type="boolean", nullable=true)
*/
private $today;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255, nullable=true)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="description_anonyme", type="text", nullable=true)
*/
private $descriptionAnonyme;
/**
* @var string
*
* @ORM\Column(name="description", type="text", nullable=true)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="enterprise_name", type="string", length=255, nullable=true)
*/
private $enterpriseName;
/**
* @var string
*
* @ORM\Column(name="type_enterprise", type="string", length=255, nullable=true)
*/
private $typeEnterprise;
/**
* @var string
*
* @ORM\Column(name="school_name", type="string", length=255, nullable=true)
*/
private $schoolName;
/**
* @var string
*
* @ORM\Column(name="diploma", type="boolean", nullable=true)
*/
private $diploma;
/**
* @var string
*
* @ORM\Column(name="no_anonyme", type="boolean", nullable=true)
*/
private $noAnonyme;
/**
* @var string
*
* @ORM\Column(name="online", type="boolean", nullable=true)
*/
private $online;
/**
* @var \Candidates
*
* @ORM\ManyToOne(targetEntity="App\Entity\Cvs\Candidates")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="candidate_id", referencedColumnName="id", nullable=true)
* })
*/
protected $candidate;
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue(): void
{
$this->setCreatedAt(new \DateTime("now"));
$this->setUpdatedAt(new \DateTime("now"));
}
/**
* @ORM\PreUpdate
*/
public function setUpdatedAtValue(): void
{
$this->setUpdatedAt(new \DateTime("now"));
}
public function __toString()
{
return $this->title;
}
public function getId(): ?int
{
return $this->id;
}
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 getStart(): ?\DateTimeInterface
{
return $this->start;
}
public function setStart(?\DateTimeInterface $start): self
{
$this->start = $start;
return $this;
}
public function getEnd(): ?\DateTimeInterface
{
return $this->end;
}
public function setEnd(?\DateTimeInterface $end): self
{
$this->end = $end;
return $this;
}
public function getToday(): ?bool
{
return $this->today;
}
public function setToday(?bool $today): self
{
$this->today = $today;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getDescriptionAnonyme(): ?string
{
return $this->descriptionAnonyme;
}
public function setDescriptionAnonyme(?string $descriptionAnonyme): self
{
$this->descriptionAnonyme = $descriptionAnonyme;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getEnterpriseName(): ?string
{
return $this->enterpriseName;
}
public function setEnterpriseName(?string $enterpriseName): self
{
$this->enterpriseName = $enterpriseName;
return $this;
}
public function getTypeEnterprise(): ?string
{
return $this->typeEnterprise;
}
public function setTypeEnterprise(?string $typeEnterprise): self
{
$this->typeEnterprise = $typeEnterprise;
return $this;
}
public function getSchoolName(): ?string
{
return $this->schoolName;
}
public function setSchoolName(?string $schoolName): self
{
$this->schoolName = $schoolName;
return $this;
}
public function getDiploma(): ?bool
{
return $this->diploma;
}
public function setDiploma(?bool $diploma): self
{
$this->diploma = $diploma;
return $this;
}
public function getNoAnonyme(): ?bool
{
return $this->noAnonyme;
}
public function setNoAnonyme(?bool $noAnonyme): self
{
$this->noAnonyme = $noAnonyme;
return $this;
}
public function getOnline(): ?bool
{
return $this->online;
}
public function setOnline(?bool $online): self
{
$this->online = $online;
return $this;
}
public function getCandidate(): ?Candidates
{
return $this->candidate;
}
public function setCandidate(?Candidates $candidate): self
{
$this->candidate = $candidate;
return $this;
}
public function isToday(): ?bool
{
return $this->today;
}
public function isDiploma(): ?bool
{
return $this->diploma;
}
public function isNoAnonyme(): ?bool
{
return $this->noAnonyme;
}
public function isOnline(): ?bool
{
return $this->online;
}
}