CustomerStreet

Implements \CustomerStreetInterface

Value Object

Class CustomerStreet

Represents a customer street

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerStreetInterface

Methods

Constructor of the class CustomerStreet.

__construct(string $p_street) 

Validates the length and the data type of the street name.

Throws
\InvalidArgumentException

If $p_street is not a string.

\LengthException

If $p_street contains more characters than 64.

Arguments

$p_street

string

Customer's street.

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 street.

street : string
var

Type(s)

string