<?php
namespace App\Entity;
use App\Repository\AffiliateClientServiceRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AffiliateClientServiceRepository::class)]
class AffiliateClientService
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: AffiliateService::class, inversedBy: 'affiliateClientServices')]
private $service;
#[ORM\Column(type: 'datetime')]
private $date;
#[ORM\Column(type: 'float')]
private $price;
#[ORM\ManyToOne(targetEntity: AffiliateClient::class, inversedBy: 'services')]
private $affiliateClient;
public function getId(): ?int
{
return $this->id;
}
public function getService(): ?AffiliateService
{
return $this->service;
}
public function setService(?AffiliateService $service): self
{
$this->service = $service;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(float $price): self
{
$this->price = $price;
return $this;
}
public function getAffiliateClient(): ?AffiliateClient
{
return $this->affiliateClient;
}
public function setAffiliateClient(?AffiliateClient $affiliateClient): self
{
$this->affiliateClient = $affiliateClient;
return $this;
}
}