src/Entity/SignatoryDocType.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SignatoryDocTypeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SignatoryDocTypeRepository::class)
  7.  */
  8. class SignatoryDocType
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="listDocType")
  18.      */
  19.     protected $signatory;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\DocumentType", inversedBy="docTypeSignatory")
  22.      */
  23.     protected $docType;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getSignatory(): ?User
  29.     {
  30.         return $this->signatory;
  31.     }
  32.     public function setSignatory(?User $signatory): self
  33.     {
  34.         $this->signatory $signatory;
  35.         return $this;
  36.     }
  37.     public function getDocType(): ?DocumentType
  38.     {
  39.         return $this->docType;
  40.     }
  41.     public function setDocType(?DocumentType $docType): self
  42.     {
  43.         $this->docType $docType;
  44.         return $this;
  45.     }
  46. }