src/Entity/Main/ApiPropertiesSubtypes.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiPropertiesSubtypes
  6.  *
  7.  * @ORM\Table(name="api_properties_subtypes", indexes={@ORM\Index(name="id", columns={"id"}), @ORM\Index(name="PropertiesSubtypes_PropertiesTypes_FK", columns={"type"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiPropertiesSubtypesRepository")
  9.  */
  10. class ApiPropertiesSubtypes
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="NONE")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="type", type="integer", nullable=false)
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="NONE")
  26.      */
  27.     private $type '0';
  28.     /**
  29.      * @var string|null
  30.      *
  31.      * @ORM\Column(name="name", type="string", length=50, nullable=true, options={"default"="NULL"})
  32.      */
  33.     private $name 'NULL';
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getType(): ?int
  39.     {
  40.         return $this->type;
  41.     }
  42.     public function getName(): ?string
  43.     {
  44.         return $this->name;
  45.     }
  46.     public function setName(?string $name): self
  47.     {
  48.         $this->name $name;
  49.         return $this;
  50.     }
  51. }