src/Entity/System/BrandLanguage.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * BrandLanguage
  6. *
  7. * @ORM\Table(name="ps_manufacturer_lang")
  8. *
  9. * @ORM\Entity(repositoryClass="App\Repository\System\BrandLanguageRepository")
  10. */
  11. class BrandLanguage
  12. {
  13. /**
  14. * @var Brand
  15. *
  16. * @ORM\Id()
  17. *
  18. * @ORM\ManyToOne(targetEntity="App\Entity\System\Brand", inversedBy="brandLanguages")
  19. *
  20. * @ORM\JoinColumn(nullable=false, name="id_manufacturer", referencedColumnName="id_manufacturer")
  21. */
  22. private $brand;
  23. /**
  24. * @var Language
  25. *
  26. * @ORM\Id()
  27. *
  28. * @ORM\ManyToOne(targetEntity="App\Entity\System\Language")
  29. *
  30. * @ORM\JoinColumn(nullable=false, name="id_lang", referencedColumnName="id_lang")
  31. */
  32. private $language;
  33. /**
  34. * @var string|null
  35. *
  36. * @ORM\Column(type="string", length=255, nullable=true)
  37. */
  38. private $linkRewrite;
  39. /**
  40. * @var string|null
  41. *
  42. * @ORM\Column(type="string", length=255, nullable=true)
  43. */
  44. private $metaTitle;
  45. /**
  46. * @var string|null
  47. *
  48. * @ORM\Column(type="text", nullable=true)
  49. */
  50. private $description;
  51. /**
  52. * @return Brand
  53. */
  54. public function getBrand(): Brand
  55. {
  56. return $this->brand;
  57. }
  58. /**
  59. * @param Brand $brand
  60. *
  61. * @return BrandLanguage
  62. */
  63. public function setBrand(Brand $brand): self
  64. {
  65. $this->brand = $brand;
  66. return $this;
  67. }
  68. /**
  69. * @return Language
  70. */
  71. public function getLanguage(): Language
  72. {
  73. return $this->language;
  74. }
  75. /**
  76. * @param Language $language
  77. *
  78. * @return BrandLanguage
  79. */
  80. public function setLanguage(Language $language): self
  81. {
  82. $this->language = $language;
  83. return $this;
  84. }
  85. /**
  86. * @return string|null
  87. */
  88. public function getLinkRewrite(): ?string
  89. {
  90. return $this->linkRewrite;
  91. }
  92. /**
  93. * @param string|null $linkRewrite
  94. *
  95. * @return BrandLanguage
  96. */
  97. public function setLinkRewrite(?string $linkRewrite): self
  98. {
  99. $this->linkRewrite = $linkRewrite;
  100. return $this;
  101. }
  102. /**
  103. * @return string|null
  104. */
  105. public function getMetaTitle(): ?string
  106. {
  107. return $this->metaTitle;
  108. }
  109. /**
  110. * @param string|null $metaTitle
  111. *
  112. * @return BrandLanguage
  113. */
  114. public function setMetaTitle(?string $metaTitle): self
  115. {
  116. $this->metaTitle = $metaTitle;
  117. return $this;
  118. }
  119. /**
  120. * @return string|null
  121. */
  122. public function getDescription(): ?string
  123. {
  124. return $this->description;
  125. }
  126. /**
  127. * @param string|null $description
  128. *
  129. * @return BrandLanguage
  130. */
  131. public function setDescription(?string $description): self
  132. {
  133. $this->description = $description;
  134. return $this;
  135. }
  136. }