<?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 StaVisaStatus
*
* @ORM\Entity(repositoryClass="App\Repository\StaVisaStatusRepository")
* @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 StaVisaStatus
{
use SoftDeletableEntityTrait, StatefulEntityTrait, TimestampedEntityTrait;
/**
* @var string
*
* @ORM\Id()
* @ORM\Column(length=6)
*/
private $code;
/**
* @var string
*
* @ORM\Column(length=100)
*/
private $name;
/**
* @var string|null
*
* @ORM\Column(length=10,nullable=true)
*/
private $color;
/**
* @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): StaVisaStatus
{
$this->code = $code;
return $this;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
* @return StaVisaType
*/
public function setName(string $name): StaVisaStatus
{
$this->name = $name;
return $this;
}
public function getSortOrder(): int
{
return $this->sortOrder;
}
public function setSortOrder(int $sortOrder): StaVisaStatus
{
$this->sortOrder = $sortOrder;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(?string $color): StaVisaStatus
{
$this->color = $color;
return $this;
}
}