<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Common\SoftDeletableEntityTrait;
use App\Entity\Common\StatefulEntityTrait;
use App\Entity\Common\TimestampedEntityTrait;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* Class StaCurrency
*
* @ORM\Entity(repositoryClass="App\Repository\StaCurrencyRepository")
* @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 StaCurrency
{
use SoftDeletableEntityTrait, StatefulEntityTrait, TimestampedEntityTrait;
/**
* @var string
*
* @ORM\Id()
* @ORM\Column(type="string", length=3)
*/
private $code;
/**
* @var integer|null
*
* @ORM\Column(type="integer", nullable=true)
*/
private $isoNumber;
/**
* @var string
*
* @ORM\Column(type="string", length=50)
*/
private $name;
/**
* @var string|null
*
* @ORM\Column(type="string", length=50,nullable=true)
*/
private $unicode_sign;
/**
* @var integer|null
*
* @ORM\Column(type="integer", nullable=true)
*/
private $order = 0;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $default = false;
/**
* @return string
*/
public function getCode(): string
{
return $this->code;
}
/**
* @param string $code
* @return StaCurrency
*/
public function setCode(string $code): StaCurrency
{
$this->code = $code;
return $this;
}
/**
* @return int|null
*/
public function getIsoNumber(): ?int
{
return $this->isoNumber;
}
/**
* @param int|null $isoNumber
* @return StaCurrency
*/
public function setIsoNumber(?int $isoNumber): StaCurrency
{
$this->isoNumber = $isoNumber;
return $this;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
* @return StaCurrency
*/
public function setName(string $name): StaCurrency
{
$this->name = $name;
return $this;
}
/**
* @return string|null
*/
public function getUnicodeSign(): ?string
{
return $this->unicode_sign;
}
/**
* @param string|null $unicode_sign
* @return StaCurrency
*/
public function setUnicodeSign(?string $unicode_sign): StaCurrency
{
$this->unicode_sign = $unicode_sign;
return $this;
}
/**
* @return int|null
*/
public function getOrder(): ?int
{
return $this->order;
}
/**
* @param int|null $order
*/
public function setOrder(?int $order): void
{
$this->order = $order;
}
/**
* @return bool|null
*/
public function getDefault(): ?bool
{
return $this->default;
}
/**
* @param bool|null $default
*/
public function setDefault(?bool $default): void
{
$this->default = $default;
}
}