<?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
*
* @ORM\Table("cvs_candidates")
* @ORM\Entity(repositoryClass="App\Repository\Cvs\CandidatesRepository")
* @ORM\HasLifecycleCallbacks()
*/
class Candidates
{
/**
* @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="name", type="string", length=255, nullable=true)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="lastname", type="string", length=255, nullable=true)
*/
private $lastname;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=255, nullable=true)
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255, nullable=true)
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="address", type="string", length=255, nullable=true)
*/
private $address;
/**
* @var string
*
* @ORM\Column(name="city", type="string", length=255, nullable=true)
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="zipcode", type="string", length=255, nullable=true)
*/
private $zipcode;
/**
* @var string
*
* @ORM\Column(name="country", type="string", length=255, nullable=true)
*/
private $country;
/**
* @var string
*
* @ORM\Column(name="slug", type="string", length=255, nullable=true)
*/
private $slug;
/**
* @var string
*
* @ORM\Column(name="slug_anonyme", type="string", length=255, nullable=true)
*/
private $slugAnonyme;
/**
* @var string
*
* @ORM\Column(name="title_job", type="string", length=255, nullable=true)
*/
private $titleJob;
/**
* @var string
*
* @ORM\Column(name="description_cover", type="text", nullable=true)
*/
private $descriptionCover;
/**
* @var string
*
* @ORM\Column(name="description_cover_anonyme", type="text", nullable=true)
*/
private $descriptionCoverAnonyme;
/**
* @var string
*
* @ORM\Column(name="description_services", type="text", nullable=true)
*/
private $descriptionServices;
/**
* @var string
*
* @ORM\Column(name="description_services_anonyme", type="text", nullable=true)
*/
private $descriptionServicesAnonyme;
/**
* @var string
*
* @ORM\Column(name="description_cta", type="text", nullable=true)
*/
private $descriptionCta;
/**
* @var string
*
* @ORM\Column(name="description_cta_anonyme", type="text", nullable=true)
*/
private $descriptionCtaAnonyme;
/**
* @var string
*
* @ORM\Column(name="description", type="text", nullable=true)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="description_anonyme", type="text", nullable=true)
*/
private $descriptionAnonyme;
/**
* @var string
*
* @ORM\Column(name="description_experience", type="text", nullable=true)
*/
private $descriptionExperience;
/**
* @var string
*
* @ORM\Column(name="description_experience_anonyme", type="text", nullable=true)
*/
private $descriptionExperienceAnonyme;
/**
* @var string
*
* @ORM\Column(name="website_url", type="text", nullable=true)
*/
private $websiteUrl;
/**
* @var string
*
* @ORM\Column(name="linkedin_url", type="text", nullable=true)
*/
private $linkedinUrl;
/**
* @var string
*
* @ORM\Column(name="salary", type="boolean", nullable=true)
*/
private $salary;
/**
* @var string
*
* @ORM\Column(name="freelance", type="boolean", nullable=true)
*/
private $freelance;
/**
* @var string
*
* @ORM\Column(name="alternance", type="boolean", nullable=true)
*/
private $alternance;
/**
* @var string
*
* @ORM\Column(name="stage", type="boolean", nullable=true)
*/
private $stage;
/**
* @var string
*
* @ORM\Column(name="on_search", type="boolean", nullable=true)
*/
private $onSearch;
/**
* @var string
*
* @ORM\Column(name="on_discussion", type="boolean", nullable=true)
*/
private $onDiscussion;
/**
* @var string
*
* @ORM\Column(name="notifications", type="boolean", nullable=true)
*/
private $notifications;
/**
* @var string
*
* @ORM\Column(name="online", type="boolean", nullable=true)
*/
private $online;
/**
* @var string
*
* @ORM\Column(name="online_classic", type="boolean", nullable=true)
*/
private $onlineClassic;
/**
* @var string
*
* @ORM\Column(name="invitation_code", type="text", nullable=true)
*/
private $invitationCode;
/**
* @var string
*
* @ORM\Column(name="invitation_code_anonyme", type="text", nullable=true)
*/
private $invitationCodeAnonyme;
/**
* @var string
*
* @ORM\Column(name="views", type="integer", nullable=true)
*/
private $views;
/**
* @var string
*
* @ORM\Column(name="exp_years", type="integer", nullable=true)
*/
private $expYears;
/**
* @var string
*
* @ORM\Column(name="views_anonyme", type="integer", nullable=true)
*/
private $viewsAnonyme;
/**
* @var string
*
* @ORM\Column(name="first", type="boolean", nullable=true)
*/
private $first;
/**
* @var \Categories
*
* @ORM\ManyToOne(targetEntity="App\Entity\Cvs\Categories")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="category_id", referencedColumnName="id", nullable=true)
* })
*/
protected $category;
/**
* @var string
*
* @ORM\Column(name="point_x", type="string", length=255, nullable=true)
*/
private $pointX;
/**
* @var string
*
* @ORM\Column(name="point_y", type="string", length=255, nullable=true)
*/
private $pointY;
/**
* @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 getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(?string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getZipcode(): ?string
{
return $this->zipcode;
}
public function setZipcode(?string $zipcode): self
{
$this->zipcode = $zipcode;
return $this;
}
public function getCountry(): ?string
{
return $this->country;
}
public function setCountry(?string $country): self
{
$this->country = $country;
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
return $this;
}
public function getSlugAnonyme(): ?string
{
return $this->slugAnonyme;
}
public function setSlugAnonyme(?string $slugAnonyme): self
{
$this->slugAnonyme = $slugAnonyme;
return $this;
}
public function getTitleJob(): ?string
{
return $this->titleJob;
}
public function setTitleJob(?string $titleJob): self
{
$this->titleJob = $titleJob;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getWebsiteUrl(): ?string
{
return $this->websiteUrl;
}
public function setWebsiteUrl(?string $websiteUrl): self
{
$this->websiteUrl = $websiteUrl;
return $this;
}
public function getLinkedinUrl(): ?string
{
return $this->linkedinUrl;
}
public function setLinkedinUrl(?string $linkedinUrl): self
{
$this->linkedinUrl = $linkedinUrl;
return $this;
}
public function getSalary(): ?bool
{
return $this->salary;
}
public function setSalary(?bool $salary): self
{
$this->salary = $salary;
return $this;
}
public function getFreelance(): ?bool
{
return $this->freelance;
}
public function setFreelance(?bool $freelance): self
{
$this->freelance = $freelance;
return $this;
}
public function getOnSearch(): ?bool
{
return $this->onSearch;
}
public function setOnSearch(?bool $onSearch): self
{
$this->onSearch = $onSearch;
return $this;
}
public function getOnDiscussion(): ?bool
{
return $this->onDiscussion;
}
public function setOnDiscussion(?bool $onDiscussion): self
{
$this->onDiscussion = $onDiscussion;
return $this;
}
public function getNotifications(): ?bool
{
return $this->notifications;
}
public function setNotifications(?bool $notifications): self
{
$this->notifications = $notifications;
return $this;
}
public function getOnline(): ?bool
{
return $this->online;
}
public function setOnline(?bool $online): self
{
$this->online = $online;
return $this;
}
public function getOnlineClassic(): ?bool
{
return $this->onlineClassic;
}
public function setOnlineClassic(?bool $onlineClassic): self
{
$this->onlineClassic = $onlineClassic;
return $this;
}
public function getInvitationCode(): ?string
{
return $this->invitationCode;
}
public function setInvitationCode(?string $invitationCode): self
{
$this->invitationCode = $invitationCode;
return $this;
}
public function getAgency(): ?Agencies
{
return $this->agency;
}
public function setAgency(?Agencies $agency): self
{
$this->agency = $agency;
return $this;
}
public function getFirst(): ?bool
{
return $this->first;
}
public function setFirst(?bool $first): self
{
$this->first = $first;
return $this;
}
public function getUser(): ?Users
{
return $this->user;
}
public function setUser(?Users $user): self
{
$this->user = $user;
return $this;
}
public function getDescriptionAnonyme(): ?string
{
return $this->descriptionAnonyme;
}
public function setDescriptionAnonyme(?string $descriptionAnonyme): self
{
$this->descriptionAnonyme = $descriptionAnonyme;
return $this;
}
public function getDescriptionCover(): ?string
{
return $this->descriptionCover;
}
public function setDescriptionCover(?string $descriptionCover): self
{
$this->descriptionCover = $descriptionCover;
return $this;
}
public function getDescriptionCta(): ?string
{
return $this->descriptionCta;
}
public function setDescriptionCta(?string $descriptionCta): self
{
$this->descriptionCta = $descriptionCta;
return $this;
}
public function getDescriptionCoverAnonyme(): ?string
{
return $this->descriptionCoverAnonyme;
}
public function setDescriptionCoverAnonyme(?string $descriptionCoverAnonyme): self
{
$this->descriptionCoverAnonyme = $descriptionCoverAnonyme;
return $this;
}
public function getDescriptionCtaAnonyme(): ?string
{
return $this->descriptionCtaAnonyme;
}
public function setDescriptionCtaAnonyme(?string $descriptionCtaAnonyme): self
{
$this->descriptionCtaAnonyme = $descriptionCtaAnonyme;
return $this;
}
public function getDescriptionServices(): ?string
{
return $this->descriptionServices;
}
public function setDescriptionServices(?string $descriptionServices): self
{
$this->descriptionServices = $descriptionServices;
return $this;
}
public function getDescriptionServicesAnonyme(): ?string
{
return $this->descriptionServicesAnonyme;
}
public function setDescriptionServicesAnonyme(?string $descriptionServicesAnonyme): self
{
$this->descriptionServicesAnonyme = $descriptionServicesAnonyme;
return $this;
}
public function getDescriptionExperience(): ?string
{
return $this->descriptionExperience;
}
public function setDescriptionExperience(?string $descriptionExperience): self
{
$this->descriptionExperience = $descriptionExperience;
return $this;
}
public function getDescriptionExperienceAnonyme(): ?string
{
return $this->descriptionExperienceAnonyme;
}
public function setDescriptionExperienceAnonyme(?string $descriptionExperienceAnonyme): self
{
$this->descriptionExperienceAnonyme = $descriptionExperienceAnonyme;
return $this;
}
public function getInvitationCodeAnonyme(): ?string
{
return $this->invitationCodeAnonyme;
}
public function setInvitationCodeAnonyme(?string $invitationCodeAnonyme): self
{
$this->invitationCodeAnonyme = $invitationCodeAnonyme;
return $this;
}
public function getViews(): ?int
{
return $this->views;
}
public function setViews(?int $views): self
{
$this->views = $views;
return $this;
}
public function getViewsAnonyme(): ?int
{
return $this->viewsAnonyme;
}
public function setViewsAnonyme(?int $viewsAnonyme): self
{
$this->viewsAnonyme = $viewsAnonyme;
return $this;
}
public function getAlternance(): ?bool
{
return $this->alternance;
}
public function setAlternance(?bool $alternance): self
{
$this->alternance = $alternance;
return $this;
}
public function getStage(): ?bool
{
return $this->stage;
}
public function setStage(?bool $stage): self
{
$this->stage = $stage;
return $this;
}
public function getCategory(): ?Categories
{
return $this->category;
}
public function setCategory(?Categories $category): self
{
$this->category = $category;
return $this;
}
public function getPointX(): ?string
{
return $this->pointX;
}
public function setPointX(?string $pointX): self
{
$this->pointX = $pointX;
return $this;
}
public function getPointY(): ?string
{
return $this->pointY;
}
public function setPointY(?string $pointY): self
{
$this->pointY = $pointY;
return $this;
}
public function isSalary(): ?bool
{
return $this->salary;
}
public function isFreelance(): ?bool
{
return $this->freelance;
}
public function isAlternance(): ?bool
{
return $this->alternance;
}
public function isStage(): ?bool
{
return $this->stage;
}
public function isOnSearch(): ?bool
{
return $this->onSearch;
}
public function isOnDiscussion(): ?bool
{
return $this->onDiscussion;
}
public function isNotifications(): ?bool
{
return $this->notifications;
}
public function isOnline(): ?bool
{
return $this->online;
}
public function getExpYears(): ?int
{
return $this->expYears;
}
public function setExpYears(?int $expYears): static
{
$this->expYears = $expYears;
return $this;
}
public function isFirst(): ?bool
{
return $this->first;
}
public function isOnlineClassic(): ?bool
{
return $this->onlineClassic;
}
}