<?php
namespace App\Entity;
use DateTime;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="cal_job_application")
*/
class JobApplication
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\JobOffer", inversedBy="applications")
*/
private $jobOffer;
/**
* @ORM\Column(type="string", length=255)
*/
private $status = "";
/**
* @ORM\OneToOne(targetEntity="App\Entity\Media", cascade={"persist"}, orphanRemoval=true)
*/
private $cv;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Media", cascade={"persist"}, orphanRemoval=true)
*/
private $motivation;
/**
* @ORM\Column(type="string", length=255)
*/
private $firstname = "";
/**
* @ORM\Column(type="string", length=255)
*/
private $lastname = "";
/**
* @ORM\Column(type="string", length=255)
*/
private $email = "";
/**
* @ORM\Column(type="string", length=255)
*/
private $phone = "";
/**
* @ORM\Column(type="text")
*/
private $message = "";
/**
* @ORM\Column(type="text", nullable=true)
*/
private $note = "";
/**
* @var DateTime $createdAt
*
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $createdAt;
//--------------------------------------------------------------
// Utilities
//--------------------------------------------------------------
public function __construct()
{
}
//--------------------------------------------------------------
// Getters and setters
//--------------------------------------------------------------
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getStatus(): string
{
return $this->status;
}
/**
* @param string $status
*/
public function setStatus(string $status): void
{
$this->status = $status;
}
/**
* @return mixed
*/
public function getCv()
{
return $this->cv;
}
/**
* @param mixed $cv
*/
public function setCv($cv): void
{
$this->cv = $cv;
}
/**
* @return string
*/
public function getMotivation()
{
return $this->motivation;
}
/**
* @param string $motivation
*/
public function setMotivation($motivation): void
{
$this->motivation = $motivation;
}
/**
* @return string
*/
public function getEmail(): string
{
return $this->email;
}
/**
* @param string $email
*/
public function setEmail(string $email): void
{
$this->email = $email;
}
/**
* @return string
*/
public function getPhone(): string
{
return $this->phone;
}
/**
* @param string $phone
*/
public function setPhone(string $phone): void
{
$this->phone = $phone;
}
/**
* @return string
*/
public function getMessage(): string
{
return $this->message;
}
/**
* @param string $message
*/
public function setMessage(string $message): void
{
$this->message = $message;
}
/**
* @return DateTime
*/
public function getCreatedAt(): DateTime
{
return $this->createdAt;
}
/**
* @param DateTime $createdAt
*/
public function setCreatedAt(DateTime $createdAt): void
{
$this->createdAt = $createdAt;
}
/**
* @return string
*/
public function getFirstname(): string
{
return $this->firstname;
}
/**
* @param string $firstname
*/
public function setFirstname(string $firstname): void
{
$this->firstname = $firstname;
}
/**
* @return string
*/
public function getLastname(): string
{
return $this->lastname;
}
/**
* @param string $lastname
*/
public function setLastname(string $lastname): void
{
$this->lastname = $lastname;
}
/**
* @return mixed
*/
public function getJobOffer()
{
return $this->jobOffer;
}
/**
* @param mixed $jobOffer
*/
public function setJobOffer($jobOffer): void
{
$this->jobOffer = $jobOffer;
}
/**
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* @param string $note
*/
public function setNote($note): void
{
$this->note = $note;
}
}