PHP Класс DragonBe\Vies\CheckVatResponse

This is the response object from the VIES web service for validation of VAT numbers of companies registered in the European Union.
См. также: DragonBe\Vies\Exception
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$address The registered address of a validated company (optional)
$countryCode The country code for a member of the European Union
$identifier The request Identifier (optional)
$name The registered name of a validated company (optional)
$requestDate The date of the request
$valid Flag indicating the VAT number is valid
$vatNumber The VAT number of a registered European company

Открытые методы

Метод Описание
__construct ( null | StdClass $params = null ) Constructor for this response object
getAddress ( ) : string Retrieves the registered address of a company
getCountryCode ( ) : string Retrieves the two-character country code from a member of the European Union.
getIdentifier ( ) : mixed get requerst Identifier
getName ( ) : string Retrieves the registered name of the company
getRequestDate ( ) : DateTime Retrieves the date- and timestamp the VIES service response was created
getVatNumber ( ) : string Retrieves the VAT number from a company within the European Union
isValid ( ) : boolean Checks to see if a request is valid with given parameters
populate ( array | stdClass $row ) Populates this response object with external data
setAddress ( string $address ) : CheckVatResponse Sets the registered address of a company
setCountryCode ( string $countryCode ) : CheckVatResponse Sets the two-character country code for a member of the European Union
setIdentifier ( $identifier ) : CheckVatResponse Sets request Identifier
setName ( string $name ) : CheckVatResponse Sets optionally the registered name of the company
setRequestDate ( string $requestDate ) : CheckVatResponse Sets the date- and timestamp when the VIES service response was created
setValid ( boolean $flag ) : CheckVatResponse Sets the flag to indicate the provided details were valid or not
setVatNumber ( string $vatNumber ) : CheckVatResponse Sets the VAT number of a company within the European Union
toArray ( )

Описание методов

__construct() публичный Метод

Constructor for this response object
public __construct ( null | StdClass $params = null )
$params null | StdClass

getAddress() публичный Метод

Retrieves the registered address of a company
public getAddress ( ) : string
Результат string

getCountryCode() публичный Метод

Retrieves the two-character country code from a member of the European Union.
public getCountryCode ( ) : string
Результат string

getIdentifier() публичный Метод

get requerst Identifier
public getIdentifier ( ) : mixed
Результат mixed

getName() публичный Метод

Retrieves the registered name of the company
public getName ( ) : string
Результат string

getRequestDate() публичный Метод

Retrieves the date- and timestamp the VIES service response was created
public getRequestDate ( ) : DateTime
Результат DateTime

getVatNumber() публичный Метод

Retrieves the VAT number from a company within the European Union
public getVatNumber ( ) : string
Результат string

isValid() публичный Метод

Checks to see if a request is valid with given parameters
public isValid ( ) : boolean
Результат boolean

populate() публичный Метод

Populates this response object with external data
public populate ( array | stdClass $row )
$row array | stdClass

setAddress() публичный Метод

Sets the registered address of a company
public setAddress ( string $address ) : CheckVatResponse
$address string
Результат CheckVatResponse

setCountryCode() публичный Метод

Sets the two-character country code for a member of the European Union
public setCountryCode ( string $countryCode ) : CheckVatResponse
$countryCode string
Результат CheckVatResponse

setIdentifier() публичный Метод

Sets request Identifier
public setIdentifier ( $identifier ) : CheckVatResponse
$identifier
Результат CheckVatResponse

setName() публичный Метод

Sets optionally the registered name of the company
public setName ( string $name ) : CheckVatResponse
$name string
Результат CheckVatResponse

setRequestDate() публичный Метод

Sets the date- and timestamp when the VIES service response was created
public setRequestDate ( string $requestDate ) : CheckVatResponse
$requestDate string
Результат CheckVatResponse

setValid() публичный Метод

Sets the flag to indicate the provided details were valid or not
public setValid ( boolean $flag ) : CheckVatResponse
$flag boolean
Результат CheckVatResponse

setVatNumber() публичный Метод

Sets the VAT number of a company within the European Union
public setVatNumber ( string $vatNumber ) : CheckVatResponse
$vatNumber string
Результат CheckVatResponse

toArray() публичный Метод

public toArray ( )

Описание свойств

$address защищенное свойство

The registered address of a validated company (optional)
protected $address

$countryCode защищенное свойство

The country code for a member of the European Union
protected $countryCode

$identifier защищенное свойство

The request Identifier (optional)
protected $identifier

$name защищенное свойство

The registered name of a validated company (optional)
protected $name

$requestDate защищенное свойство

The date of the request
protected $requestDate

$valid защищенное свойство

Flag indicating the VAT number is valid
protected $valid

$vatNumber защищенное свойство

The VAT number of a registered European company
protected $vatNumber