CustomerPassword
in package
implements
CustomerPasswordInterface
Class CustomerPassword
Represents a customer's password.
Tags
Interfaces, Classes and Traits
- CustomerPasswordInterface
- Value Object.
Table of Contents
- $password : string
- Customer's password.
- __construct() : mixed
- Constructor for the class CustomerPassword.
- __toString() : string
- Returns the password string value (either hashed or not).
- _getHash() : string
- Get password hash string.
Properties
$password
Customer's password.
protected
string
$password
Methods
__construct()
Constructor for the class CustomerPassword.
public
__construct(string $p_password[, bool $p_disableHash = false ]) : mixed
Validates password and build md5-hash.
Parameters
- $p_password : string
-
Customer's password.
- $p_disableHash : bool = false
-
(optional) Will not hash the provided password string.
Tags
Return values
mixed —__toString()
Returns the password string value (either hashed or not).
public
__toString() : string
Return values
string —_getHash()
Get password hash string.
protected
_getHash(string $p_password) : string
Parameters
- $p_password : string
-
Password to be hashed.