OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker:
+ Collaboration diagram for OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker:

Public Member Functions

 setCountry (\OxidEsales\Eshop\Application\Model\Country $country)
 
 getCountry ()
 
 validate (\OxidEsales\Eshop\Application\Model\CompanyVatIn $vatIn)
 

Public Attributes

const ERROR_ID_NOT_VALID = 'ID_NOT_VALID'
 

Private Attributes

 $_oCountry = null
 

Detailed Description

Company VAT identification number checker. Check if number belongs to the country.

Member Function Documentation

◆ getCountry()

OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker::getCountry ( )

Country getter

Returns
oxCountry

◆ setCountry()

OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker::setCountry ( \OxidEsales\Eshop\Application\Model\Country  $country)

Country setter

Parameters
\OxidEsales\Eshop\Application\Model\Country$country

◆ validate()

OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker::validate ( \OxidEsales\Eshop\Application\Model\CompanyVatIn  $vatIn)

Validates.

Parameters
\OxidEsales\Eshop\Application\Model\CompanyVatIn$vatIn
Returns
bool

Member Data Documentation

◆ $_oCountry

OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker::$_oCountry = null
private

◆ ERROR_ID_NOT_VALID

const OxidEsales\EshopCommunity\Core\CompanyVatInCountryChecker::ERROR_ID_NOT_VALID = 'ID_NOT_VALID'

Error string if country mismatch


The documentation for this class was generated from the following file: