src/Entity/AttributeDescription.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * PagesDescription
  6. *
  7. * @ORM\Table(name="attributes_description")
  8. * @ORM\Entity
  9. */
  10. class AttributeDescription
  11. {
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @var \App\Entity\Page
  22. *
  23. * @ORM\ManyToOne(targetEntity="App\Entity\Attribute", inversedBy="descriptions")
  24. * @ORM\JoinColumn(name="attributes_id", referencedColumnName="attributes_id", onDelete="CASCADE")
  25. */
  26. private $attribute;
  27. /**
  28. * @var \App\Entity\Language
  29. *
  30. * @ORM\ManyToOne(targetEntity="App\Entity\Language")
  31. * @ORM\JoinColumn(name="language_id", referencedColumnName="languages_id")
  32. */
  33. private $language;
  34. /**
  35. * @var string
  36. *
  37. * @ORM\Column(name="attributes_title", type="string", length=255, nullable=true)
  38. */
  39. private $title;
  40. public function getId(): ?int {
  41. return $this->id;
  42. }
  43. public function getAttribute(): \App\Entity\Attribute {
  44. return $this->attribute;
  45. }
  46. public function getLanguage(): \App\Entity\Language {
  47. return $this->language;
  48. }
  49. public function getTitle(): string {
  50. return $this->title;
  51. }
  52. public function setId(int $id): void {
  53. $this->id = $id;
  54. }
  55. public function setAttribute(\App\Entity\Attribute $attribute): void {
  56. $this->attribute = $attribute;
  57. }
  58. public function setLanguage(\App\Entity\Language $language): void {
  59. $this->language = $language;
  60. }
  61. public function setTitle(string $title): void {
  62. $this->title = $title;
  63. }
  64. }