src/Entity/UserJobAlgo.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\JobConfiguration\Job;
  4. use App\Repository\UserJobAlgoRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=UserJobAlgoRepository::class)
  8.  */
  9. class UserJobAlgo
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="userJobAlgos")
  19.      */
  20.     private $user;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Job::class, inversedBy="userJobAlgos")
  23.      */
  24.     private $job;
  25.     /**
  26.      * @ORM\Column(type="float", options={"default"=0})
  27.      */
  28.     private $profileScore 0;
  29.     /**
  30.      * @ORM\Column(type="float", options={"default"=0})
  31.      */
  32.     private $twinScore 0;
  33.     /**
  34.      * @ORM\Column(type="float", options={"default"=0})
  35.      */
  36.     private $cvScore 0;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getUser(): ?User
  42.     {
  43.         return $this->user;
  44.     }
  45.     public function setUser(?User $user): self
  46.     {
  47.         $this->user $user;
  48.         return $this;
  49.     }
  50.     public function getJob(): ?Job
  51.     {
  52.         return $this->job;
  53.     }
  54.     public function setJob(?Job $job): self
  55.     {
  56.         $this->job $job;
  57.         return $this;
  58.     }
  59.     public function getProfileScore(): ?float
  60.     {
  61.         return $this->profileScore;
  62.     }
  63.     public function setProfileScore(float $profileScore): self
  64.     {
  65.         $this->profileScore $profileScore;
  66.         return $this;
  67.     }
  68.     public function getTwinScore(): ?float
  69.     {
  70.         return $this->twinScore;
  71.     }
  72.     public function setTwinScore(float $twinScore): self
  73.     {
  74.         $this->twinScore $twinScore;
  75.         return $this;
  76.     }
  77.     public function getCvScore(): ?float
  78.     {
  79.         return $this->cvScore;
  80.     }
  81.     public function setCvScore(float $cvScore): self
  82.     {
  83.         $this->cvScore $cvScore;
  84.         return $this;
  85.     }
  86. }