src/Entity/System/SynchronisedShopStatusLanguage.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table(name="ps_syncronised_shop_status_language")
  6. *
  7. * @ORM\Entity(repositoryClass="App\Repository\System\SynchronisedShopStatusLanguageRepository")
  8. */
  9. class SynchronisedShopStatusLanguage
  10. {
  11. /**
  12. * @var int
  13. *
  14. * @ORM\Id
  15. *
  16. * @ORM\GeneratedValue(strategy="AUTO")
  17. *
  18. * @ORM\Column(type="integer")
  19. */
  20. private $id;
  21. /**
  22. * @var string
  23. *
  24. * @ORM\Column(type="string", length=100, nullable=false)
  25. */
  26. private $name;
  27. /**
  28. * @var SynchronisedShopStatus
  29. *
  30. * @ORM\ManyToOne(targetEntity="App\Entity\System\SynchronisedShopStatus", inversedBy="languages")
  31. *
  32. * @ORM\JoinColumn(name="id_sincronate_shop_status", referencedColumnName="id_sincronate_shop_status")
  33. */
  34. private $status;
  35. /**
  36. * @var Language
  37. *
  38. * @ORM\ManyToOne(targetEntity="App\Entity\System\Language")
  39. *
  40. * @ORM\JoinColumn(name="id_lang", referencedColumnName="id_lang", nullable=false)
  41. */
  42. private $language;
  43. public function getId(): int
  44. {
  45. return $this->id;
  46. }
  47. public function setId(int $id): SynchronisedShopStatusLanguage
  48. {
  49. $this->id = $id;
  50. return $this;
  51. }
  52. public function getName(): ?string
  53. {
  54. return $this->name;
  55. }
  56. public function setName(?string $name): SynchronisedShopStatusLanguage
  57. {
  58. $this->name = $name;
  59. return $this;
  60. }
  61. public function getLanguage(): Language
  62. {
  63. return $this->language;
  64. }
  65. public function setLanguage(Language $language): SynchronisedShopStatusLanguage
  66. {
  67. $this->language = $language;
  68. return $this;
  69. }
  70. public function getStatus(): SynchronisedShopStatus
  71. {
  72. return $this->status;
  73. }
  74. public function setStatus(SynchronisedShopStatus $status): SynchronisedShopStatusLanguage
  75. {
  76. $this->status = $status;
  77. return $this;
  78. }
  79. }