src/Entity/AffiliateClientService.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AffiliateClientServiceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAffiliateClientServiceRepository::class)]
  6. class AffiliateClientService
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityAffiliateService::class, inversedBy'affiliateClientServices')]
  13.     private $service;
  14.     #[ORM\Column(type'datetime')]
  15.     private $date;
  16.   #[ORM\Column(type'float')]
  17.     private $price;
  18.   #[ORM\ManyToOne(targetEntityAffiliateClient::class, inversedBy'services')]
  19.   private $affiliateClient;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getService(): ?AffiliateService
  25.     {
  26.         return $this->service;
  27.     }
  28.     public function setService(?AffiliateService $service): self
  29.     {
  30.         $this->service $service;
  31.         return $this;
  32.     }
  33.     public function getDate(): ?\DateTimeInterface
  34.     {
  35.         return $this->date;
  36.     }
  37.     public function setDate(\DateTimeInterface $date): self
  38.     {
  39.         $this->date $date;
  40.         return $this;
  41.     }
  42.     public function getPrice(): ?float
  43.     {
  44.         return $this->price;
  45.     }
  46.     public function setPrice(float $price): self
  47.     {
  48.         $this->price $price;
  49.         return $this;
  50.     }
  51.     public function getAffiliateClient(): ?AffiliateClient
  52.     {
  53.         return $this->affiliateClient;
  54.     }
  55.     public function setAffiliateClient(?AffiliateClient $affiliateClient): self
  56.     {
  57.         $this->affiliateClient $affiliateClient;
  58.         return $this;
  59.     }
  60. }