src/Entity/QuotaProductJob.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\QuotaProductJobRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=QuotaProductJobRepository::class)
  9. */
  10. class QuotaProductJob
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=CustomProduct::class, inversedBy="quotaProductJob")
  20. */
  21. private ?CustomProduct $customProduct;
  22. /**
  23. * @ORM\Column(type="integer")
  24. */
  25. private ?int $quota;
  26. /**
  27. * @ORM\Column(type="string", length=255)
  28. */
  29. private ?string $job;
  30. public function getId(): ?int
  31. {
  32. return $this->id;
  33. }
  34. /**
  35. * @return Collection<int, CustomProduct>
  36. */
  37. public function getCustomProduct(): ?CustomProduct
  38. {
  39. return $this->customProduct;
  40. }
  41. public function setCustomProduct(?CustomProduct $customProduct): self
  42. {
  43. $this->customProduct = $customProduct;
  44. return $this;
  45. }
  46. public function getQuota(): ?int
  47. {
  48. return $this->quota;
  49. }
  50. public function setQuota(int $quota): self
  51. {
  52. $this->quota = $quota;
  53. return $this;
  54. }
  55. public function getJob(): ?string
  56. {
  57. return $this->job;
  58. }
  59. public function setJob(string $job): self
  60. {
  61. $this->job = $job;
  62. return $this;
  63. }
  64. }