src/Entity/CustomerPriceGroup.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * CustomersGroups
  6. *
  7. * @ORM\Table(name="customers_price_groups")
  8. * @ORM\Entity
  9. */
  10. class CustomerPriceGroup
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="smallint", nullable=false, options={"unsigned"=true})
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Entity\Customer", inversedBy="priceGroups")
  22. * @ORM\JoinColumn(name="customers_id", referencedColumnName="customers_id", nullable=true, onDelete="CASCADE")
  23. */
  24. private $customer;
  25. /**
  26. * @ORM\ManyToOne(targetEntity="App\Entity\PriceGroup")
  27. * @ORM\JoinColumn(name="price_group_id", referencedColumnName="id", nullable=true, onDelete="CASCADE")
  28. */
  29. private $group;
  30. /**
  31. * @ORM\Column(name="sap_id", type="string", length=50, nullable=true, options={"comment"="Code client de SAP"})
  32. */
  33. private $sapId;
  34. public function getId(): int {
  35. return $this->id;
  36. }
  37. public function getCustomer() {
  38. return $this->customer;
  39. }
  40. public function getGroup() {
  41. return $this->group;
  42. }
  43. public function getSapId() {
  44. return $this->sapId;
  45. }
  46. public function setId(int $id): void {
  47. $this->id = $id;
  48. }
  49. public function setCustomer($customer): void {
  50. $this->customer = $customer;
  51. }
  52. public function setGroup($group): void {
  53. $this->group = $group;
  54. }
  55. public function setSapId($sapId): void {
  56. $this->sapId = $sapId;
  57. }
  58. }