src/Entity/Cv.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CvRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CvRepository::class)
  8.  */
  9. class Cv
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $uuid;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $token;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $slug;
  29.     /**
  30.      * @ORM\Column(type="boolean", nullable=true)
  31.      */
  32.     private $statut false;
  33.     /**
  34.      * @ORM\Column(type="datetime_immutable", nullable=true)
  35.      */
  36.     private $createdAt;
  37.     /**
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private $updatedAt;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $pseudo;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $photo;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $telephone;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     private $cv;
  57.     /**
  58.      * @ORM\Column(type="text", nullable=true)
  59.      */
  60.     private $parcours;
  61.     /**
  62.      * @ORM\Column(type="text", nullable=true)
  63.      */
  64.     private $competence;
  65.     /**
  66.      * @ORM\Column(type="text", nullable=true)
  67.      */
  68.     private $aspiration;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="cvs")
  71.      */
  72.     private $user;
  73.     /**
  74.      * @ORM\Column(type="boolean", nullable=true)
  75.      */
  76.     private $couverture;
  77.     /**
  78.      * @ORM\Column(type="datetime_immutable", nullable=true)
  79.      */
  80.     private $validedAt;
  81.     /**
  82.      * @ORM\Column(type="boolean", nullable=true)
  83.      */
  84.     private $moderate false;
  85.     /**
  86.      * @ORM\ManyToOne(targetEntity=Grade::class, inversedBy="cvs")
  87.      */
  88.     private $grade;
  89.     /**
  90.      * @ORM\ManyToOne(targetEntity=Direction::class, inversedBy="cvs")
  91.      */
  92.     private $direction;
  93.     /**
  94.      * @ORM\Column(type="string", length=255, nullable=true)
  95.      */
  96.     private $nom;
  97.     /**
  98.      * @ORM\Column(type="string", length=255, nullable=true)
  99.      */
  100.     private $prenom;
  101.     /**
  102.      * @ORM\Column(type="string", length=255, nullable=true)
  103.      */
  104.     private $email;
  105.     /**
  106.      * @ORM\Column(type="boolean", nullable=true)
  107.      */
  108.     private $fake;
  109.     public function __construct()
  110.     {
  111.         $this->uuid Uuid::v4();
  112.     }
  113.     public function getId(): ?int
  114.     {
  115.         return $this->id;
  116.     }
  117.     public function getUuid(): ?string
  118.     {
  119.         return $this->uuid;
  120.     }
  121.     public function setUuid(?string $uuid): self
  122.     {
  123.         $this->uuid $uuid;
  124.         return $this;
  125.     }
  126.     public function getToken(): ?string
  127.     {
  128.         return $this->token;
  129.     }
  130.     public function setToken(?string $token): self
  131.     {
  132.         $this->token $token;
  133.         return $this;
  134.     }
  135.     public function getSlug(): ?string
  136.     {
  137.         return $this->slug;
  138.     }
  139.     public function setSlug(?string $slug): self
  140.     {
  141.         $this->slug $slug;
  142.         return $this;
  143.     }
  144.     public function isStatut(): ?bool
  145.     {
  146.         return $this->statut;
  147.     }
  148.     public function setStatut(?bool $statut): self
  149.     {
  150.         $this->statut $statut;
  151.         return $this;
  152.     }
  153.     public function getCreatedAt(): ?\DateTimeImmutable
  154.     {
  155.         return $this->createdAt;
  156.     }
  157.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  158.     {
  159.         $this->createdAt $createdAt;
  160.         return $this;
  161.     }
  162.     public function getUpdatedAt(): ?\DateTimeInterface
  163.     {
  164.         return $this->updatedAt;
  165.     }
  166.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  167.     {
  168.         $this->updatedAt $updatedAt;
  169.         return $this;
  170.     }
  171.     public function getPseudo(): ?string
  172.     {
  173.         return $this->pseudo;
  174.     }
  175.     public function setPseudo(?string $pseudo): self
  176.     {
  177.         $this->pseudo $pseudo;
  178.         return $this;
  179.     }
  180.     public function getPhoto(): ?string
  181.     {
  182.         return $this->photo;
  183.     }
  184.     public function setPhoto(?string $photo): self
  185.     {
  186.         $this->photo $photo;
  187.         return $this;
  188.     }
  189.     public function getTelephone(): ?string
  190.     {
  191.         return $this->telephone;
  192.     }
  193.     public function setTelephone(?string $telephone): self
  194.     {
  195.         $this->telephone $telephone;
  196.         return $this;
  197.     }
  198.     public function getCv(): ?string
  199.     {
  200.         return $this->cv;
  201.     }
  202.     public function setCv(?string $cv): self
  203.     {
  204.         $this->cv $cv;
  205.         return $this;
  206.     }
  207.     public function getParcours(): ?string
  208.     {
  209.         return $this->parcours;
  210.     }
  211.     public function setParcours(?string $parcours): self
  212.     {
  213.         $this->parcours $parcours;
  214.         return $this;
  215.     }
  216.     public function getCompetence(): ?string
  217.     {
  218.         return $this->competence;
  219.     }
  220.     public function setCompetence(?string $competence): self
  221.     {
  222.         $this->competence $competence;
  223.         return $this;
  224.     }
  225.     public function getAspiration(): ?string
  226.     {
  227.         return $this->aspiration;
  228.     }
  229.     public function setAspiration(?string $aspiration): self
  230.     {
  231.         $this->aspiration $aspiration;
  232.         return $this;
  233.     }
  234.     public function getUser(): ?User
  235.     {
  236.         return $this->user;
  237.     }
  238.     public function setUser(?User $user): self
  239.     {
  240.         $this->user $user;
  241.         return $this;
  242.     }
  243.     public function isCouverture(): ?bool
  244.     {
  245.         return $this->couverture;
  246.     }
  247.     public function setCouverture(?bool $couverture): self
  248.     {
  249.         $this->couverture $couverture;
  250.         return $this;
  251.     }
  252.     public function getValidedAt(): ?\DateTimeImmutable
  253.     {
  254.         return $this->validedAt;
  255.     }
  256.     public function setValidedAt(?\DateTimeImmutable $validedAt): self
  257.     {
  258.         $this->validedAt $validedAt;
  259.         return $this;
  260.     }
  261.     public function isModerate(): ?bool
  262.     {
  263.         return $this->moderate;
  264.     }
  265.     public function setModerate(?bool $moderate): self
  266.     {
  267.         $this->moderate $moderate;
  268.         return $this;
  269.     }
  270.     public function getGrade(): ?Grade
  271.     {
  272.         return $this->grade;
  273.     }
  274.     public function setGrade(?Grade $grade): self
  275.     {
  276.         $this->grade $grade;
  277.         return $this;
  278.     }
  279.     public function getDirection(): ?Direction
  280.     {
  281.         return $this->direction;
  282.     }
  283.     public function setDirection(?Direction $direction): self
  284.     {
  285.         $this->direction $direction;
  286.         return $this;
  287.     }
  288.     public function getNom(): ?string
  289.     {
  290.         return $this->nom;
  291.     }
  292.     public function setNom(?string $nom): self
  293.     {
  294.         $this->nom $nom;
  295.         return $this;
  296.     }
  297.     public function getPrenom(): ?string
  298.     {
  299.         return $this->prenom;
  300.     }
  301.     public function setPrenom(?string $prenom): self
  302.     {
  303.         $this->prenom $prenom;
  304.         return $this;
  305.     }
  306.     public function getEmail(): ?string
  307.     {
  308.         return $this->email;
  309.     }
  310.     public function setEmail(?string $email): self
  311.     {
  312.         $this->email $email;
  313.         return $this;
  314.     }
  315.     public function isFake(): ?bool
  316.     {
  317.         return $this->fake;
  318.     }
  319.     public function setFake(?bool $fake): self
  320.     {
  321.         $this->fake $fake;
  322.         return $this;
  323.     }
  324. }