src/Entity/Vetoadom/DocumentType.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Vetoadom;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * DocumentType
  6.  *
  7.  * @ORM\Table(name="document_type")
  8.  * @ORM\Entity(repositoryClass="App\Repository\Vetoadom\DocumentTypeRepository")
  9.  */
  10. class DocumentType
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="nom", type="string", length=100, nullable=false)
  24.      */
  25.     private $nom;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="type", type="string", length=50, nullable=false)
  30.      */
  31.     private $type;
  32.     /**
  33.      * @var array|null
  34.      *
  35.      * @ORM\Column(name="extensions", type="simple_array", length=0, nullable=true)
  36.      */
  37.     private $extensions;
  38.     /**
  39.      * @var array|null
  40.      *
  41.      * @ORM\Column(name="mime", type="simple_array", length=0, nullable=true)
  42.      */
  43.     private $mime;
  44.     /**
  45.      * @var int
  46.      *
  47.      * @ORM\Column(name="size", type="integer", nullable=false)
  48.      */
  49.     private $size '0';
  50.     /**
  51.      * @var int|null
  52.      *
  53.      * @ORM\Column(name="width", type="integer", nullable=true)
  54.      */
  55.     private $width;
  56.     /**
  57.      * @var int|null
  58.      *
  59.      * @ORM\Column(name="height", type="integer", nullable=true)
  60.      */
  61.     private $height;
  62.     /**
  63.      * @var bool
  64.      *
  65.      * @ORM\Column(name="multiple", type="boolean", nullable=false)
  66.      */
  67.     private $multiple '0';
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getNom(): ?string
  73.     {
  74.         return $this->nom;
  75.     }
  76.     public function setNom(string $nom): self
  77.     {
  78.         $this->nom $nom;
  79.         return $this;
  80.     }
  81.     public function getType(): ?string
  82.     {
  83.         return $this->type;
  84.     }
  85.     public function setType(string $type): self
  86.     {
  87.         $this->type $type;
  88.         return $this;
  89.     }
  90.     public function getExtensions(): ?array
  91.     {
  92.         return $this->extensions;
  93.     }
  94.     public function setExtensions(?array $extensions): self
  95.     {
  96.         $this->extensions $extensions;
  97.         return $this;
  98.     }
  99.     public function getMime(): ?array
  100.     {
  101.         return $this->mime;
  102.     }
  103.     public function setMime(?array $mime): self
  104.     {
  105.         $this->mime $mime;
  106.         return $this;
  107.     }
  108.     public function getSize(): ?int
  109.     {
  110.         return $this->size;
  111.     }
  112.     public function setSize(int $size): self
  113.     {
  114.         $this->size $size;
  115.         return $this;
  116.     }
  117.     public function getWidth(): ?int
  118.     {
  119.         return $this->width;
  120.     }
  121.     public function setWidth(?int $width): self
  122.     {
  123.         $this->width $width;
  124.         return $this;
  125.     }
  126.     public function getHeight(): ?int
  127.     {
  128.         return $this->height;
  129.     }
  130.     public function setHeight(?int $height): self
  131.     {
  132.         $this->height $height;
  133.         return $this;
  134.     }
  135.     public function getMultiple(): ?bool
  136.     {
  137.         return $this->multiple;
  138.     }
  139.     public function setMultiple(bool $multiple): self
  140.     {
  141.         $this->multiple $multiple;
  142.         return $this;
  143.     }
  144. }