src/Entity/CompanyTerminology.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * CompanyTerminology
  6. *
  7. * @ORM\Table(name="company_terminology", uniqueConstraints={@ORM\UniqueConstraint(name="terminology_id", columns={"terminology_id"})}, indexes={@ORM\Index(name="company_id", columns={"company_id"})})
  8. * @ORM\Entity
  9. */
  10. class CompanyTerminology
  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 string
  22. *
  23. * @ORM\Column(name="singular_text", type="string", length=255, nullable=false)
  24. */
  25. private $singularText;
  26. /**
  27. * @var string
  28. *
  29. * @ORM\Column(name="plural_text", type="string", length=255, nullable=false)
  30. */
  31. private $pluralText;
  32. /**
  33. * @var \Terminology
  34. *
  35. * @ORM\ManyToOne(targetEntity="Terminology")
  36. * @ORM\JoinColumns({
  37. * @ORM\JoinColumn(name="terminology_id", referencedColumnName="id")
  38. * })
  39. */
  40. private $terminology;
  41. /**
  42. * @var \Company
  43. *
  44. * @ORM\ManyToOne(targetEntity="Company")
  45. * @ORM\JoinColumns({
  46. * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  47. * })
  48. */
  49. private $company;
  50. public function getId(): ?int
  51. {
  52. return $this->id;
  53. }
  54. public function getSingularText(): ?string
  55. {
  56. return $this->singularText;
  57. }
  58. public function setSingularText(string $singularText): self
  59. {
  60. $this->singularText = $singularText;
  61. return $this;
  62. }
  63. public function getPluralText(): ?string
  64. {
  65. return $this->pluralText;
  66. }
  67. public function setPluralText(string $pluralText): self
  68. {
  69. $this->pluralText = $pluralText;
  70. return $this;
  71. }
  72. public function getTerminology(): ?Terminology
  73. {
  74. return $this->terminology;
  75. }
  76. public function setTerminology(?Terminology $terminology): self
  77. {
  78. $this->terminology = $terminology;
  79. return $this;
  80. }
  81. public function getCompany(): ?Company
  82. {
  83. return $this->company;
  84. }
  85. public function setCompany(?Company $company): self
  86. {
  87. $this->company = $company;
  88. return $this;
  89. }
  90. }