CustomerPassword

Implements \CustomerPasswordInterface

Value Object

Class CustomerPassword

Represents a customer password

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerPasswordInterface

Methods

Constructor for the class CustomerPassword.

__construct(string $p_password, boolean $p_disableHash = false) 

Validates password and build md5-hash.

throws

If $p_password is not a string.

Arguments

$p_password

string

Customer's password.

$p_disableHash

boolean

(optional) Will not hash the provided password string.

Returns the equivalent string value (MD5-hash).

__toString() : string

Response

string

Equivalent string value (MD5-hash).

Properties

Customer's password.

md5password : string
var

Type(s)

string