src/Entity/CRM/ConsultantReward.php line 10

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Entity\CRM\Product;
  4. use App\Repository\ConsultantRewardRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassConsultantRewardRepository::class)]
  7. class ConsultantReward
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'consultantRewards')]
  14.     private ?Product $product null;
  15.     #[ORM\Column]
  16.     private ?float $reward null;
  17.     #[ORM\ManyToOne(inversedBy'consultantRewards')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Consultant $consultant null;
  20.     public function __construct()
  21.     {
  22.     }
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getProduct(): ?Product
  28.     {
  29.         return $this->product;
  30.     }
  31.     public function setProduct(?Product $product): static
  32.     {
  33.         $this->product $product;
  34.         return $this;
  35.     }
  36.     public function getReward(): ?float
  37.     {
  38.         return $this->reward;
  39.     }
  40.     public function setReward(float $reward): static
  41.     {
  42.         $this->reward $reward;
  43.         return $this;
  44.     }
  45.     public function getConsultant(): ?Consultant
  46.     {
  47.         return $this->consultant;
  48.     }
  49.     public function setConsultant(?Consultant $consultant): static
  50.     {
  51.         $this->consultant $consultant;
  52.         return $this;
  53.     }
  54. }