src/Bundles/Settings/Entity/Settings.php line 14

Open in your IDE?
  1. <?php
  2. namespace Bundles\Settings\Entity;
  3. use Bundles\Settings\Repository\SettingsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use App\Entity\Customer;
  8. /**
  9. * @ORM\Entity(repositoryClass=SettingsRepository::class)
  10. */
  11. class Settings
  12. {
  13. /**
  14. * @ORM\Id()
  15. * @ORM\GeneratedValue()
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\Column(type="string", length=6)
  21. */
  22. private $type;
  23. /**
  24. * @ORM\Column(type="string", length=255)
  25. */
  26. private $name;
  27. /**
  28. * @ORM\Column(type="string", length=255)
  29. */
  30. private $value;
  31. /**
  32. * @ORM\Column(type="boolean")
  33. */
  34. private $active = true;
  35. /**
  36. * @ORM\ManyToOne(targetEntity=Customer::class, inversedBy="settings")
  37. */
  38. private $customer = null;
  39. /**
  40. * @ORM\Column(type="string", length=20, nullable=true)
  41. */
  42. private $grouping;
  43. public function getId(): ?int
  44. {
  45. return $this->id;
  46. }
  47. public function getType()
  48. {
  49. return $this->type;
  50. }
  51. public function setType($type): self
  52. {
  53. $this->type = $type;
  54. return $this;
  55. }
  56. public function getName(): ?string
  57. {
  58. return $this->name;
  59. }
  60. public function setName(string $name): self
  61. {
  62. $this->name = $name;
  63. return $this;
  64. }
  65. public function getValue(): ?string
  66. {
  67. return $this->value;
  68. }
  69. public function setValue(string $value): self
  70. {
  71. $this->value = $value;
  72. return $this;
  73. }
  74. public function getActive(): ?bool
  75. {
  76. return $this->active;
  77. }
  78. public function setActive(bool $active): self
  79. {
  80. $this->active = $active;
  81. return $this;
  82. }
  83. public function getCustomer()
  84. {
  85. return $this->customer;
  86. }
  87. public function setCustomer($customer): self
  88. {
  89. $this->customer = $customer;
  90. return $this;
  91. }
  92. /**
  93. * @return mixed
  94. */
  95. public function getGrouping() {
  96. return $this->grouping;
  97. }
  98. /**
  99. * @param mixed $group
  100. */
  101. public function setGrouping($group): void {
  102. $this->grouping = $group;
  103. }
  104. }