<?php
namespace App\Entity;
use App\Entity\Traits\Creation;
use App\Entity\Traits\Deleteable;
use App\Entity\Traits\Idable;
use App\Entity\Traits\SoftUpdate;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'terms')]
class Term
{
use Idable;
use Creation;
use Deleteable;
use SoftUpdate;
#[ORM\Column(type: 'string')]
protected $taxonomy;
#[ORM\Column(type: 'string')]
protected $name;
#[ORM\Column(type: 'string')]
protected $name_tr;
#[ORM\ManyToOne(targetEntity: Company::class)]
protected $company;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $uid;
public function getUid(): ?string
{
return $this->uid;
}
public function setUid(?string $uid): void
{
$this->uid = $uid;
}
public function getCompany()
{
return $this->company;
}
public function setCompany($company): void
{
$this->company = $company;
}
public function getNameTr()
{
return $this->name_tr;
}
public function setNameTr($name_tr): void
{
$this->name_tr = $name_tr;
}
public function getTaxonomy()
{
return $this->taxonomy;
}
public function setTaxonomy($taxonomy): void
{
$this->taxonomy = $taxonomy;
}
public function getName()
{
return $this->name;
}
public function setName($name): void
{
$this->name = $name;
}
}