Public Member Functions | Public Attributes | Private Attributes

oxCompanyVatInCountryChecker Class Reference

Inheritance diagram for oxCompanyVatInCountryChecker:
Collaboration diagram for oxCompanyVatInCountryChecker:

List of all members.

Public Member Functions

 setCountry (oxCountry $oCountry)
 getCountry ()
 validate (oxCompanyVatIn $oVatIn)

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.

Definition at line 7 of file oxcompanyvatincountrychecker.php.


Member Function Documentation

oxCompanyVatInCountryChecker.getCountry (  ) 

Country getter

Returns:
oxCountry

Implements oxICountryAware.

Definition at line 37 of file oxcompanyvatincountrychecker.php.

oxCompanyVatInCountryChecker.setCountry ( oxCountry oCountry  ) 

Country setter

Parameters:
oxCountry $oCountry

Implements oxICountryAware.

Definition at line 27 of file oxcompanyvatincountrychecker.php.

oxCompanyVatInCountryChecker.validate ( oxCompanyVatIn oVatIn  ) 

Validates.

Parameters:
oxCompanyVatIn $oVatIn
Returns:
bool

Definition at line 49 of file oxcompanyvatincountrychecker.php.


Member Data Documentation

oxCompanyVatInCountryChecker.$_oCountry = null [private]

Definition at line 20 of file oxcompanyvatincountrychecker.php.

Error string if country mismatch

Definition at line 13 of file oxcompanyvatincountrychecker.php.


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