CustomerCompany
in package
implements
CustomerCompanyInterface
Uses
StringUtilityTrait
Value Object
Class CustomerCompany
Represents a customer company
Tags
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
$company
Customer's company.
protected
string
$company
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
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'