CustomerCompany

Implements \CustomerCompanyInterface

Value Object

Class CustomerCompany

Represents a customer company

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerCompanyInterface

Methods

Constructor of the class CustomerCompany.

__construct(string $p_company) 

Validates the length and data type of the customer company.

Throws
\InvalidArgumentException

If $p_company is not a string.

\LengthException

If $p_company contains more characters than 255.

Arguments

$p_company

string

Customer's company.

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

company : string
var

Type(s)

string