CustomerPassword

Implements \CustomerPasswordInterface

Class CustomerPassword

Represents a customer's password.

deprecated

This class is deprecated and will be deleted in GX 3.7. Use CustomerHashedPassword instead.

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
\InvalidArgumentException

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 password string value (either hashed or not).

__toString() : string

Response

string

Properties