src/Entity/CustomerGroup.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_groups")
  8. * @ORM\Entity
  9. */
  10. class CustomerGroup
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="customers_group_id", type="smallint", nullable=false, options={"unsigned"=true})
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="customers_group_name", type="string", length=32, nullable=false)
  24. */
  25. private $name = '';
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(name="customers_group_show_tax", type="string", length=0, nullable=false, options={"default"="1"})
  30. */
  31. private $showTax = '1';
  32. /**
  33. * @var string
  34. *
  35. * @ORM\Column(name="customers_group_tax_exempt", type="string", length=0, nullable=false)
  36. */
  37. private $taxExempt = '0';
  38. /**
  39. * @var string
  40. *
  41. * @ORM\Column(name="group_payment_allowed", type="string", length=255, nullable=false)
  42. */
  43. private $paymentAllowed = '';
  44. /**
  45. * @var string
  46. *
  47. * @ORM\Column(name="group_shipment_allowed", type="string", length=255, nullable=false)
  48. */
  49. private $shipmentAllowed = '';
  50. public function getId() {
  51. return $this->id;
  52. }
  53. public function getName() {
  54. return $this->name;
  55. }
  56. public function getShowTax() {
  57. return $this->showTax;
  58. }
  59. public function getTaxExempt() {
  60. return $this->taxExempt;
  61. }
  62. public function getPaymentAllowed() {
  63. return $this->paymentAllowed;
  64. }
  65. public function getShipmentAllowed() {
  66. return $this->shipmentAllowed;
  67. }
  68. public function setId($id) {
  69. $this->id = $id;
  70. }
  71. public function setName($name) {
  72. $this->name = $name;
  73. }
  74. public function setShowTax($showTax) {
  75. $this->showTax = $showTax;
  76. }
  77. public function setTaxExempt($taxExempt) {
  78. $this->taxExempt = $taxExempt;
  79. }
  80. public function setPaymentAllowed($paymentAllowed) {
  81. $this->paymentAllowed = $paymentAllowed;
  82. }
  83. public function setShipmentAllowed($shipmentAllowed) {
  84. $this->shipmentAllowed = $shipmentAllowed;
  85. }
  86. public function toArray() {
  87. $tmp = [];
  88. $tmp['id'] = $this->getId();
  89. $tmp['name'] = $this->getId();
  90. $tmp['showTax'] = $this->getId();
  91. $tmp['taxExempt'] = $this->getId();
  92. $tmp['paymentAllowed'] = $this->getId();
  93. $tmp['shipmentAllowed'] = $this->getId();
  94. return $tmp;
  95. }
  96. }