phpDocumentor

CustomerCompany
in package
implements CustomerCompanyInterface Uses StringUtilityTrait

Value Object

Class CustomerCompany

Represents a customer company

Tags
category

System

subpackage

ValueObjects

implements

CustomerCompanyInterface

Interfaces, Classes and Traits

CustomerCompanyInterface
Value Object

Table of Contents

$company  : string
Customer's company.
__construct()  : mixed
Constructor of the class CustomerCompany.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor of the class CustomerCompany.

public __construct(string $p_company) : mixed

Validates the length and data type of the customer company.

Parameters
$p_company : string

Customer's company.

Tags
throws
InvalidArgumentException

If $p_company is not a string.

throws
LengthException

If $p_company contains more characters than 255.

Return values
mixed

__toString()

Returns the equivalent string value.

public __toString() : string
Return values
string

Equivalent string value.

strlenWrapper()

protected strlenWrapper(mixed $string[, mixed $encoding = 'utf-8' ]) : mixed
Parameters
$string : mixed
$encoding : mixed = 'utf-8'
Return values
mixed

Search results