src/Entity/ProductModelVariant.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\ProductModelDescription;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
  6. use App\Helpers\Encoder;
  7. /**
  8. * Products
  9. *
  10. * @ORM\Table(name="products_models_variants")
  11. * @ORM\Entity
  12. * @ORM\HasLifecycleCallbacks()
  13. */
  14. class ProductModelVariant extends TranslatedEntity
  15. {
  16. /**
  17. * @var int
  18. *
  19. * @ORM\Column(name="id", type="integer", nullable=false)
  20. * @ORM\Id
  21. * @ORM\GeneratedValue(strategy="IDENTITY")
  22. */
  23. private $id;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(name="code", type="string", length=50, nullable=true)
  28. */
  29. private $code;
  30. /**
  31. * @var string
  32. *
  33. * @ORM\Column(name="title", type="string", length=50, nullable=true)
  34. */
  35. private $title;
  36. /**
  37. * @var string
  38. *
  39. * @ORM\Column(name="axis1", type="string", length=50, nullable=true)
  40. */
  41. private $axis1;
  42. /**
  43. * @var string
  44. *
  45. * @ORM\Column(name="axis2", type="string", length=50, nullable=true)
  46. */
  47. private $axis2;
  48. public function getId(): int {
  49. return $this->id;
  50. }
  51. public function getCode(): string {
  52. return $this->code;
  53. }
  54. public function getTitle(): string {
  55. return $this->title;
  56. }
  57. public function getAxis1(): string {
  58. return $this->axis1;
  59. }
  60. public function getAxis2(): string {
  61. return $this->axis2;
  62. }
  63. public function setId(int $id): void {
  64. $this->id = $id;
  65. }
  66. public function setCode(string $code): void {
  67. $this->code = $code;
  68. }
  69. public function setTitle(string $title): void {
  70. $this->title = $title;
  71. }
  72. public function setAxis1(string $axis1): void {
  73. $this->axis1 = $axis1;
  74. }
  75. public function setAxis2(string $axis2): void {
  76. $this->axis2 = $axis2;
  77. }
  78. }