<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CompanyTerminology
*
* @ORM\Table(name="company_terminology", uniqueConstraints={@ORM\UniqueConstraint(name="terminology_id", columns={"terminology_id"})}, indexes={@ORM\Index(name="company_id", columns={"company_id"})})
* @ORM\Entity
*/
class CompanyTerminology
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="singular_text", type="string", length=255, nullable=false)
*/
private $singularText;
/**
* @var string
*
* @ORM\Column(name="plural_text", type="string", length=255, nullable=false)
*/
private $pluralText;
/**
* @var \Terminology
*
* @ORM\ManyToOne(targetEntity="Terminology")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="terminology_id", referencedColumnName="id")
* })
*/
private $terminology;
/**
* @var \Company
*
* @ORM\ManyToOne(targetEntity="Company")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="company_id", referencedColumnName="id")
* })
*/
private $company;
public function getId(): ?int
{
return $this->id;
}
public function getSingularText(): ?string
{
return $this->singularText;
}
public function setSingularText(string $singularText): self
{
$this->singularText = $singularText;
return $this;
}
public function getPluralText(): ?string
{
return $this->pluralText;
}
public function setPluralText(string $pluralText): self
{
$this->pluralText = $pluralText;
return $this;
}
public function getTerminology(): ?Terminology
{
return $this->terminology;
}
public function setTerminology(?Terminology $terminology): self
{
$this->terminology = $terminology;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
}