Documentation

Country
in package
implements JsonSerializable, Country

Class Country

Tags
ORM\Entity

(repositoryClass="Vatjar\Data\Repository\CountryRepository")

ORM\Table

(name="country")

Table of Contents

Interfaces

JsonSerializable
Country

Properties

$callingCode  : string|null
$companyCountryClients  : array<string|int, Client>|null
$countryClients  : array<string|int, Client>|null
$countryRegistrations  : array<string|int, UserVat>|null
$currency  : Currency|null
$engName  : string|null
$entries  : array<string|int, Entry>|null
$id  : int|null
$isEuMember  : bool
$isoCode2  : string|null
$isoCode3  : string|null
$patternCheck  : string|null
$patternParse  : string|null
$reportObligations  : array<string|int, ReportObligation>|null
$thresholdInEur  : int|null
$userTraderCountrySetting  : array<string|int, UserTraderCountrySetting>|null
$userVats  : array<string|int, UserVat>|null
$vatCountry  : Country|null

Methods

getCallingCode()  : string|null
getCompanyCountryClients()  : array<string|int, Client>|null
Get $countryClients
getCountryClients()  : array<string|int, Client>|null
Get $countryClients
getCountryRegistrations()  : array<string|int, UserVat>|null
getCurrency()  : Currency|null
getEngName()  : string|null
getEntries()  : array<string|int, Entry>|null
getId()  : int
getIdByTwo()  : int|null
getIsoCode2()  : string|null
getIsoCode3()  : string|null
getPatternCheck()  : string|null
getPatternParse()  : string|null
getReportObligations()  : array<string|int, ReportObligation>|null
getThresholdInEur()  : int|null
getTwoById()  : string|null
getUserTraderCountrySetting()  : array<string|int, UserTraderCountrySetting>|null
getUserVats()  : array<string|int, UserVat>|null
getVatCountry()  : Country|null
isEuMember()  : bool
jsonSerialize()  : mixed
Specify data which should be serialized to JSON
setCallingCode()  : void
setCompanyCountryClients()  : self
Set $countryClients
setCountryClients()  : self
Set $countryClients
setCountryRegistrations()  : void
setCurrency()  : void
setEngName()  : void
setEntries()  : void
setId()  : void
setIsEuMember()  : void
setIsoCode2()  : void
setIsoCode3()  : void
setPatternCheck()  : void
setPatternParse()  : void
setReportObligations()  : void
setThresholdInEur()  : void
setUserTraderCountrySetting()  : void
setVatCountry()  : void

Properties

$callingCode

private string|null $callingCode
Tags
ORM\Column

(name="calling_code", type="string")

$companyCountryClients

private array<string|int, Client>|null $companyCountryClients
Tags
ORM\OneToMany

(targetEntity="Client", mappedBy="companyCountry")

ORM\JoinColumn

(name="id", referencedColumnName="company_country_id")

$countryClients

private array<string|int, Client>|null $countryClients
Tags
ORM\OneToMany

(targetEntity="Client", mappedBy="country")

ORM\JoinColumn

(name="id", referencedColumnName="country_id")

$countryRegistrations

private array<string|int, UserVat>|null $countryRegistrations
Tags
ORM\OneToMany

(targetEntity="CheckoutRequestCountryRegistration", mappedBy="country")

$currency

private Currency|null $currency
Tags
ORM\ManyToOne

(targetEntity="Currency", inversedBy="countries")

ORM\JoinColumn

(name="currency_id", referencedColumnName="id")

$engName

private string|null $engName
Tags
ORM\Column

(name="eng_name", type="string")

$entries

private array<string|int, Entry>|null $entries
Tags
ORM\OneToMany

(targetEntity="Entry", mappedBy="country")

$id

private int|null $id
Tags
ORM\Id
ORM\GeneratedValue
ORM\Column

(type="integer")

$isEuMember

private bool $isEuMember
Tags
ORM\Column

(name="eu_member", type="boolean")

$isoCode2

private string|null $isoCode2
Tags
ORM\Column

(name="two", type="string")

$isoCode3

private string|null $isoCode3
Tags
ORM\Column

(name="three", type="string")

$patternCheck

private string|null $patternCheck
Tags
ORM\Column

(name="pattern_check", type="string")

$patternParse

private string|null $patternParse
Tags
ORM\Column

(name="pattern_parse", type="string")

$reportObligations

private array<string|int, ReportObligation>|null $reportObligations
Tags
ORM\OneToMany

(targetEntity="ReportObligation", mappedBy="country")

$thresholdInEur

private int|null $thresholdInEur
Tags
ORM\Column

(name="threshold_eur", type="integer")

$userTraderCountrySetting

private array<string|int, UserTraderCountrySetting>|null $userTraderCountrySetting
Tags
ORM\OneToMany

(targetEntity="UserTraderCountrySetting", mappedBy="country")

$userVats

private array<string|int, UserVat>|null $userVats
Tags
ORM\OneToMany

(targetEntity="UserVat", mappedBy="country")

$vatCountry

private Country|null $vatCountry
Tags
MaxDepth

(1)

ORM\OneToOne

(targetEntity="Country")

ORM\JoinColumn

(name="vat_country_id", referencedColumnName="id")

Methods

getCallingCode()

public getCallingCode() : string|null
Return values
string|null

getCompanyCountryClients()

Get $countryClients

public getCompanyCountryClients() : array<string|int, Client>|null
Return values
array<string|int, Client>|null

getCountryClients()

Get $countryClients

public getCountryClients() : array<string|int, Client>|null
Return values
array<string|int, Client>|null

getCountryRegistrations()

public getCountryRegistrations() : array<string|int, UserVat>|null
Return values
array<string|int, UserVat>|null

getEngName()

public getEngName() : string|null
Return values
string|null

getEntries()

public getEntries() : array<string|int, Entry>|null
Return values
array<string|int, Entry>|null

getId()

public getId() : int
Return values
int

getIdByTwo()

public static getIdByTwo(string $two) : int|null
Parameters
$two : string
Return values
int|null

getIsoCode2()

public getIsoCode2() : string|null
Return values
string|null

getIsoCode3()

public getIsoCode3() : string|null
Return values
string|null

getPatternCheck()

public getPatternCheck() : string|null
Return values
string|null

getPatternParse()

public getPatternParse() : string|null
Return values
string|null

getThresholdInEur()

public getThresholdInEur() : int|null
Return values
int|null

getTwoById()

public static getTwoById(int $id) : string|null
Parameters
$id : int
Return values
string|null

getUserVats()

public getUserVats() : array<string|int, UserVat>|null
Return values
array<string|int, UserVat>|null

isEuMember()

public isEuMember() : bool
Return values
bool

setCallingCode()

public setCallingCode(string|null $callingCode) : void
Parameters
$callingCode : string|null

setCompanyCountryClients()

Set $countryClients

public setCompanyCountryClients(array<string|int, Client>|null $companyCountryClients) : self
Parameters
$companyCountryClients : array<string|int, Client>|null

$countryClients

Return values
self

setCountryClients()

Set $countryClients

public setCountryClients(array<string|int, Client>|null $countryClients) : self
Parameters
$countryClients : array<string|int, Client>|null

$countryClients

Return values
self

setCountryRegistrations()

public setCountryRegistrations(array<string|int, UserVat>|null $countryRegistrations) : void
Parameters
$countryRegistrations : array<string|int, UserVat>|null

setEngName()

public setEngName(string|null $engName) : void
Parameters
$engName : string|null

setEntries()

public setEntries(array<string|int, Entry>|Collection|null $entries) : void
Parameters
$entries : array<string|int, Entry>|Collection|null

setId()

public setId(int|null $id) : void
Parameters
$id : int|null

setIsEuMember()

public setIsEuMember(bool $isEuMember) : void
Parameters
$isEuMember : bool

setIsoCode2()

public setIsoCode2(string|null $isoCode2) : void
Parameters
$isoCode2 : string|null

setIsoCode3()

public setIsoCode3(string|null $isoCode3) : void
Parameters
$isoCode3 : string|null

setPatternCheck()

public setPatternCheck(string|null $patternCheck) : void
Parameters
$patternCheck : string|null

setPatternParse()

public setPatternParse(string|null $patternParse) : void
Parameters
$patternParse : string|null

setReportObligations()

public setReportObligations(array<string|int, ReportObligation>|Collection|null $reportObligations) : void
Parameters
$reportObligations : array<string|int, ReportObligation>|Collection|null

setThresholdInEur()

public setThresholdInEur(int|null $thresholdInEur) : void
Parameters
$thresholdInEur : int|null

setVatCountry()

public setVatCountry(Country|null $vatCountry) : void
Parameters
$vatCountry : Country|null

        
On this page

Search results