<?php
namespace App\Entity;
use App\Repository\QuotaProductUserRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=QuotaProductUserRepository::class)
*/
class QuotaProductUser
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=CustomProduct::class, inversedBy="quotaProductUsers", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $customProduct;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="quotaProductUsers", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\Column(type="integer")
*/
private $quota;
public function getId(): ?int
{
return $this->id;
}
public function getCustomProduct(): ?CustomProduct
{
return $this->customProduct;
}
public function setCustomProduct(?CustomProduct $customProduct): self
{
$this->customProduct = $customProduct;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getQuota(): ?int
{
return $this->quota;
}
public function setQuota(int $quota): self
{
$this->quota = $quota;
return $this;
}
}