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.

strlenWrapper

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

Arguments

$string

$encoding

Properties

Customer's suburb.

suburb : string
var

Type(s)

string