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
파일 보기 프로젝트 열기: dragonbe/vies 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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