<?php
namespace App\Entity;
use App\Entity\Common\SoftDeletableEntityTrait;
use App\Entity\Common\StatefulEntityTrait;
use App\Entity\Common\TimestampedEntityTrait;
use Doctrine\ORM\Mapping\UniqueConstraint;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Class StaFileType
*
* @ORM\Entity(repositoryClass="App\Repository\StaFileTypeRepository")
* @ORM\Table(indexes={
* @ORM\Index(name="IDX_updated_at", columns={"updated_at"}),
* @ORM\Index(name="IDX_deleted_at", columns={"deleted_at"}),
* @ORM\Index(name="IDX_is_active", columns={"is_active"})
* })
* @Gedmo\SoftDeleteable(fieldName="deletedAt")
*/
class StaFileType
{
use SoftDeletableEntityTrait, StatefulEntityTrait, TimestampedEntityTrait;
/**
* @var string
*
* @ORM\Id()
* @ORM\Column(length=6)
*/
private $code;
/**
* @var string
*
* @ORM\Column(length=100)
*/
private $name;
/**
* @var int
*
* @ORM\Column(type="integer")
*/
private $sortOrder;
/**
* @return string
*/
public function getCode(): string
{
return $this->code;
}
/**
* @param string $code
* @return StaVisaType
*/
public function setCode(string $code): StaFileType
{
$this->code = $code;
return $this;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
* @return StaVisaType
*/
public function setName(string $name): StaFileType
{
$this->name = $name;
return $this;
}
public function getSortOrder(): int
{
return $this->sortOrder;
}
public function setSortOrder(int $sortOrder): StaFileType
{
$this->sortOrder = $sortOrder;
return $this;
}
}