src/Entity/UserRiasecProfile.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Profil\Profil;
  4. use App\Repository\UserRiasecProfileRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=UserRiasecProfileRepository::class)
  8.  */
  9. class UserRiasecProfile
  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="userRiasecProfiles")
  19.      */
  20.     private $user;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Profil::class, inversedBy="userRiasecProfiles")
  23.      */
  24.     private $riasecProfile;
  25.     /**
  26.      * @ORM\Column(type="float", nullable=true)
  27.      */
  28.     private $value;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getUser(): ?User
  34.     {
  35.         return $this->user;
  36.     }
  37.     public function setUser(?User $user): self
  38.     {
  39.         $this->user $user;
  40.         return $this;
  41.     }
  42.     public function getRiasecProfile(): ?Profil
  43.     {
  44.         return $this->riasecProfile;
  45.     }
  46.     public function setRiasecProfile(?Profil $riasecProfile): self
  47.     {
  48.         $this->riasecProfile $riasecProfile;
  49.         return $this;
  50.     }
  51.     public function getValue(): ?float
  52.     {
  53.         return $this->value;
  54.     }
  55.     public function setValue(?float $value): self
  56.     {
  57.         $this->value $value;
  58.         return $this;
  59.     }
  60. }