<?php
namespace App\Entity\Main;
use Doctrine\ORM\Mapping as ORM;
/**
* ApiFeatures
*
* @ORM\Table(name="api_features", indexes={@ORM\Index(name="Features_FeaturesGroups_FK", columns={"assortment"}), @ORM\Index(name="Features_FeaturesTypes_FK", columns={"type"})})
* @ORM\Entity(repositoryClass="App\Repository\Main\ApiFeaturesRepository")
*/
class ApiFeatures
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var int|null
*
* @ORM\Column(name="assortment", type="integer", nullable=true, options={"default"="1"})
*/
private $assortment = 1;
/**
* @var int|null
*
* @ORM\Column(name="type", type="integer", nullable=true, options={"default"="1"})
*/
private $type = 1;
/**
* @var string|null
*
* @ORM\Column(name="name", type="string", length=50, nullable=true, options={"default"="NULL"})
*/
private $name = 'NULL';
/**
* @var int|null
*
* @ORM\Column(name="position", type="integer", nullable=true)
*/
private $position = '0';
public function getId(): ?int
{
return $this->id;
}
public function getAssortment(): ?int
{
return $this->assortment;
}
public function setAssortment(?int $assortment): self
{
$this->assortment = $assortment;
return $this;
}
public function getType(): ?int
{
return $this->type;
}
public function setType(?int $type): self
{
$this->type = $type;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setPosition(?int $position): self
{
$this->position = $position;
return $this;
}
}