src/Entity/JobApplication.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTime;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity
  9.  * @ORM\Table(name="cal_job_application")
  10.  */
  11. class JobApplication
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\JobOffer", inversedBy="applications")
  21.      */
  22.     private $jobOffer;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $status "";
  27.     /**
  28.      * @ORM\OneToOne(targetEntity="App\Entity\Media", cascade={"persist"}, orphanRemoval=true)
  29.      */
  30.     private $cv;
  31.     /**
  32.      * @ORM\OneToOne(targetEntity="App\Entity\Media", cascade={"persist"}, orphanRemoval=true)
  33.      */
  34.     private $motivation;
  35.     /**
  36.      * @ORM\Column(type="string", length=255)
  37.      */
  38.     private $firstname "";
  39.     /**
  40.      * @ORM\Column(type="string", length=255)
  41.      */
  42.     private $lastname "";
  43.     /**
  44.      * @ORM\Column(type="string", length=255)
  45.      */
  46.     private $email "";
  47.     /**
  48.      * @ORM\Column(type="string", length=255)
  49.      */
  50.     private $phone "";
  51.     /**
  52.      * @ORM\Column(type="text")
  53.      */
  54.     private $message "";
  55.     /**
  56.      * @ORM\Column(type="text", nullable=true)
  57.      */
  58.     private $note "";
  59.     /**
  60.      * @var DateTime $createdAt
  61.      *
  62.      * @Gedmo\Timestampable(on="create")
  63.      * @ORM\Column(type="datetime")
  64.      */
  65.     private $createdAt;
  66.     //--------------------------------------------------------------
  67.     // Utilities
  68.     //--------------------------------------------------------------
  69.     public function __construct()
  70.     {
  71.     }
  72.     //--------------------------------------------------------------
  73.     // Getters and setters
  74.     //--------------------------------------------------------------
  75.     /**
  76.      * @return mixed
  77.      */
  78.     public function getId()
  79.     {
  80.         return $this->id;
  81.     }
  82.     /**
  83.      * @param mixed $id
  84.      */
  85.     public function setId($id): void
  86.     {
  87.         $this->id $id;
  88.     }
  89.     /**
  90.      * @return string
  91.      */
  92.     public function getStatus(): string
  93.     {
  94.         return $this->status;
  95.     }
  96.     /**
  97.      * @param string $status
  98.      */
  99.     public function setStatus(string $status): void
  100.     {
  101.         $this->status $status;
  102.     }
  103.     /**
  104.      * @return mixed
  105.      */
  106.     public function getCv()
  107.     {
  108.         return $this->cv;
  109.     }
  110.     /**
  111.      * @param mixed $cv
  112.      */
  113.     public function setCv($cv): void
  114.     {
  115.         $this->cv $cv;
  116.     }
  117.     /**
  118.      * @return string
  119.      */
  120.     public function getMotivation()
  121.     {
  122.         return $this->motivation;
  123.     }
  124.     /**
  125.      * @param string $motivation
  126.      */
  127.     public function setMotivation($motivation): void
  128.     {
  129.         $this->motivation $motivation;
  130.     }
  131.     /**
  132.      * @return string
  133.      */
  134.     public function getEmail(): string
  135.     {
  136.         return $this->email;
  137.     }
  138.     /**
  139.      * @param string $email
  140.      */
  141.     public function setEmail(string $email): void
  142.     {
  143.         $this->email $email;
  144.     }
  145.     /**
  146.      * @return string
  147.      */
  148.     public function getPhone(): string
  149.     {
  150.         return $this->phone;
  151.     }
  152.     /**
  153.      * @param string $phone
  154.      */
  155.     public function setPhone(string $phone): void
  156.     {
  157.         $this->phone $phone;
  158.     }
  159.     /**
  160.      * @return string
  161.      */
  162.     public function getMessage(): string
  163.     {
  164.         return $this->message;
  165.     }
  166.     /**
  167.      * @param string $message
  168.      */
  169.     public function setMessage(string $message): void
  170.     {
  171.         $this->message $message;
  172.     }
  173.     /**
  174.      * @return DateTime
  175.      */
  176.     public function getCreatedAt(): DateTime
  177.     {
  178.         return $this->createdAt;
  179.     }
  180.     /**
  181.      * @param DateTime $createdAt
  182.      */
  183.     public function setCreatedAt(DateTime $createdAt): void
  184.     {
  185.         $this->createdAt $createdAt;
  186.     }
  187.     /**
  188.      * @return string
  189.      */
  190.     public function getFirstname(): string
  191.     {
  192.         return $this->firstname;
  193.     }
  194.     /**
  195.      * @param string $firstname
  196.      */
  197.     public function setFirstname(string $firstname): void
  198.     {
  199.         $this->firstname $firstname;
  200.     }
  201.     /**
  202.      * @return string
  203.      */
  204.     public function getLastname(): string
  205.     {
  206.         return $this->lastname;
  207.     }
  208.     /**
  209.      * @param string $lastname
  210.      */
  211.     public function setLastname(string $lastname): void
  212.     {
  213.         $this->lastname $lastname;
  214.     }
  215.     /**
  216.      * @return mixed
  217.      */
  218.     public function getJobOffer()
  219.     {
  220.         return $this->jobOffer;
  221.     }
  222.     /**
  223.      * @param mixed $jobOffer
  224.      */
  225.     public function setJobOffer($jobOffer): void
  226.     {
  227.         $this->jobOffer $jobOffer;
  228.     }
  229.     /**
  230.      * @return string
  231.      */
  232.     public function getNote()
  233.     {
  234.         return $this->note;
  235.     }
  236.     /**
  237.      * @param string $note
  238.      */
  239.     public function setNote($note): void
  240.     {
  241.         $this->note $note;
  242.     }
  243. }