<?php
namespace App\Entity;
use App\Repository\JobCandidateRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Traits\EntityDateTimeAbleTrait;
#[ORM\Entity(repositoryClass: JobCandidateRepository::class)]
#[ORM\HasLifecycleCallbacks]
class JobCandidate
{
use EntityDateTimeAbleTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Offer::class, inversedBy: 'jobCandidates')]
private ?\App\Entity\Offer $offer = null;
#[ORM\ManyToOne(targetEntity: StudyLevel::class, inversedBy: 'jobCandidates')]
private ?\App\Entity\StudyLevel $studyLevel = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $status = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $firstName = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $lastName = null;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $gender = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $phone = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $message = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $fileCv = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $fileCover = null;
public function getId(): ?int
{
return $this->id;
}
public function getOffer(): ?Offer
{
return $this->offer;
}
public function setOffer(?Offer $offer): self
{
$this->offer = $offer;
return $this;
}
public function getStudyLevel(): ?StudyLevel
{
return $this->studyLevel;
}
public function setStudyLevel(?StudyLevel $studyLevel): self
{
$this->studyLevel = $studyLevel;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(?int $status): self
{
$this->status = $status;
return $this;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(?string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
public function getGender(): ?bool
{
return $this->gender;
}
public function setGender(?bool $gender): self
{
$this->gender = $gender;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
public function getFileCv(): ?string
{
return $this->fileCv;
}
public function setFileCv(?string $fileCv): self
{
$this->fileCv = $fileCv;
return $this;
}
public function getFileCover(): ?string
{
return $this->fileCover;
}
public function setFileCover(?string $fileCover): self
{
$this->fileCover = $fileCover;
return $this;
}
}