src/Entity/DocumentsTypes.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentsTypesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DocumentsTypesRepository::class)
  7.  */
  8. class DocumentsTypes {
  9.     /**
  10.      * @ORM\Id
  11.      * @ORM\GeneratedValue
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255, nullable=true)
  17.      */
  18.     private $shortName;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $name;
  23.     public function getId(): ?int {
  24.         return $this->id;
  25.     }
  26.     public function getShortName(): ?string {
  27.         return $this->shortName;
  28.     }
  29.     public function setShortName(?string $shortName): self {
  30.         $this->shortName $shortName;
  31.         return $this;
  32.     }
  33.     public function getName(): ?string {
  34.         return $this->name;
  35.     }
  36.     public function setName(?string $name): self {
  37.         $this->name $name;
  38.         return $this;
  39.     }
  40.     public function __toString() {
  41.         return $this->getName();
  42.     }
  43. }