CustomerSuburb

Implements \CustomerSuburbInterface

Class CustomerSuburb

Represents a customer suburb

category

System

package

Customer

subpackage

ValueObjects

Methods

Constructor of the class CustomerSuburb

__construct(string $p_suburb) 

Validates the length and the data type of the customer suburb.

Throws
\InvalidArgumentException

If $p_suburb is not a string.

\LengthException

If $p_suburb contains more characters than 32.

Arguments

$p_suburb

string

Customer's suburb.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

Properties