src/Entity/Main/ApiFeatures.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiFeatures
  6.  *
  7.  * @ORM\Table(name="api_features", indexes={@ORM\Index(name="Features_FeaturesGroups_FK", columns={"assortment"}), @ORM\Index(name="Features_FeaturesTypes_FK", columns={"type"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiFeaturesRepository")
  9.  */
  10. class ApiFeatures
  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 int|null
  22.      *
  23.      * @ORM\Column(name="assortment", type="integer", nullable=true, options={"default"="1"})
  24.      */
  25.     private $assortment 1;
  26.     /**
  27.      * @var int|null
  28.      *
  29.      * @ORM\Column(name="type", type="integer", nullable=true, options={"default"="1"})
  30.      */
  31.     private $type 1;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="name", type="string", length=50, nullable=true, options={"default"="NULL"})
  36.      */
  37.     private $name 'NULL';
  38.     /**
  39.      * @var int|null
  40.      *
  41.      * @ORM\Column(name="position", type="integer", nullable=true)
  42.      */
  43.     private $position '0';
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getAssortment(): ?int
  49.     {
  50.         return $this->assortment;
  51.     }
  52.     public function setAssortment(?int $assortment): self
  53.     {
  54.         $this->assortment $assortment;
  55.         return $this;
  56.     }
  57.     public function getType(): ?int
  58.     {
  59.         return $this->type;
  60.     }
  61.     public function setType(?int $type): self
  62.     {
  63.         $this->type $type;
  64.         return $this;
  65.     }
  66.     public function getName(): ?string
  67.     {
  68.         return $this->name;
  69.     }
  70.     public function setName(?string $name): self
  71.     {
  72.         $this->name $name;
  73.         return $this;
  74.     }
  75.     public function getPosition(): ?int
  76.     {
  77.         return $this->position;
  78.     }
  79.     public function setPosition(?int $position): self
  80.     {
  81.         $this->position $position;
  82.         return $this;
  83.     }
  84. }