<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="ps_tax_rule")
*
* @ORM\Entity(repositoryClass="App\Repository\System\TaxRuleRepository")
*/
class TaxRule
{
/**
* @var int|null
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_tax")
*/
private $id;
/**
* @var TaxRuleGroup
*
* @ORM\ManyToOne(targetEntity="TaxRuleGroup")
*
* @ORM\JoinColumn(name="id_tax_rules_group", referencedColumnName="id_tax_rules_group")
*/
private $taxRuleGroup;
/**
* @var Country
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Country")
*
* @ORM\JoinColumn(name="id_country", referencedColumnName="id_country")
*/
private $country;
/**
* @var State
*
* @ORM\Column(type="integer", name="id_state")
*/
private $state;
/**
* @var int
*
* @ORM\Column(type="integer")
*/
private $behavior;
/**
* @var string
*
* @ORM\Column(type="string", name="description")
*/
private $countryDestinationIso;
/**
* @var Tax
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Tax")
*
* @ORM\JoinColumn(name="id_tax", referencedColumnName="id_tax")
*/
private $tax;
/**
* @var string
*
* @ORM\Column(type="string", name="country_origin")
*/
private $countryOriginIso;
public function getId(): ?int
{
return $this->id;
}
public function setId(int $id): TaxRule
{
$this->id = $id;
return $this;
}
public function getTaxRuleGroup(): TaxRuleGroup
{
return $this->taxRuleGroup;
}
public function setTaxRuleGroup(TaxRuleGroup $taxRuleGroup): TaxRule
{
$this->taxRuleGroup = $taxRuleGroup;
return $this;
}
public function getCountry(): Country
{
return $this->country;
}
public function setCountry(Country $country): TaxRule
{
$this->country = $country;
return $this;
}
public function getState(): State
{
return $this->state;
}
public function setState(State $state): TaxRule
{
$this->state = $state;
return $this;
}
public function getBehavior(): int
{
return $this->behavior;
}
public function setBehavior(int $behavior): TaxRule
{
$this->behavior = $behavior;
return $this;
}
public function getCountryDestinationIso(): string
{
return $this->countryDestinationIso;
}
public function setCountryDestinationIso(string $countryDestinationIso): TaxRule
{
$this->countryDestinationIso = $countryDestinationIso;
return $this;
}
public function getTax(): Tax
{
return $this->tax;
}
public function setTax(Tax $tax): TaxRule
{
$this->tax = $tax;
return $this;
}
public function getCountryOriginIso(): string
{
return $this->countryOriginIso;
}
public function setCountryOriginIso(string $countryOriginIso): TaxRule
{
$this->countryOriginIso = $countryOriginIso;
return $this;
}
}