src/Entity/VatRate.php line 22
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\Index;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\OneToOne;
use Doctrine\ORM\Mapping\OneToMany;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
/**
* VatRate
*/
#[Entity(repositoryClass: \App\Entity\VatRateRepository::class)]
#[Table(name: 'vat_rate')]
class VatRate
{
/**
* @var float
*/
#[Column(name: 'vat_ratio', type: 'float', nullable: false)]
private $vatRatio;
/**
* @var string
*/
#[Column(name: 'vat_text', type: 'string', length: 50, nullable: false)]
private $vatText;
/**
* @var boolean
*/
#[Column(name: 'is_the_effective', type: 'boolean', nullable: true)]
private $isTheEffective;
/**
* @var integer
*/
#[Column(name: 'vat_rate_id', type: 'smallint', nullable: false)]
#[Id]
#[GeneratedValue(strategy: 'IDENTITY')]
private $vatRateId;
/**
* Set vatRatio
*
* @param string $vatRatio
*
* @return VatRate
*/
public function setVatRatio($vatRatio)
{
$this->vatRatio = $vatRatio;
return $this;
}
/**
* Get vatRatio
*
* @return string
*/
public function getVatRatio()
{
return $this->vatRatio;
}
/**
* Set vatText
*
* @param string $vatText
*
* @return VatRate
*/
public function setVatText($vatText)
{
$this->vatText = $vatText;
return $this;
}
/**
* Get vatText
*
* @return string
*/
public function getVatText()
{
return $this->vatText;
}
/**
* Set isTheEffective
*
* @param boolean $isTheEffective
*
* @return VatRate
*/
public function setIsTheEffective($isTheEffective)
{
$this->isTheEffective = $isTheEffective;
return $this;
}
/**
* Get isTheEffective
*
* @return boolean
*/
public function getIsTheEffective()
{
return $this->isTheEffective;
}
/**
* Get vatRateId
*
* @return integer
*/
public function getVatRateId()
{
return $this->vatRateId;
}
/**
* Set vatRateId
*
* @param integer $vatRateId
*
* @return VatRate
*/
public function setVatRateId($vatRateId)
{
$this->vatRateId = $vatRateId;
return $this;
}
}