<?php
namespace App\Entity;
use App\Repository\SignatoryDocTypeRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SignatoryDocTypeRepository::class)
*/
class SignatoryDocType
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="listDocType")
*/
protected $signatory;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DocumentType", inversedBy="docTypeSignatory")
*/
protected $docType;
public function getId(): ?int
{
return $this->id;
}
public function getSignatory(): ?User
{
return $this->signatory;
}
public function setSignatory(?User $signatory): self
{
$this->signatory = $signatory;
return $this;
}
public function getDocType(): ?DocumentType
{
return $this->docType;
}
public function setDocType(?DocumentType $docType): self
{
$this->docType = $docType;
return $this;
}
}