CustomerVatNumber

Implements \CustomerVatNumberInterface

Value Object

Class CustomerVatNumber

Represents a tax ID number (VATIN)

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerVatNumberInterface

Methods

Constructor of the class CustomerVatNumber.

__construct(string $p_vatNumber) 

Validates the length and the data type of the customer VAT number.

Throws
\InvalidArgumentException

If $p_vatNumber is not a string.

\LengthException

If $p_vatNumber contains more characters than 20.

Arguments

$p_vatNumber

string

Customer's VAT number.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

strlenWrapper

strlenWrapper( $string,  $encoding = 'utf-8') 
inherited

Arguments

$string

$encoding

Properties

Customer's VAT number.

vatNumber : string
var

Type(s)

string