interface Password implements ValueObject

Interface Password

Methods

bool
equals(ValueObject $valueObject)

Compare if a ValueObject is of the same type and identical value.

value()

Return the scalar value.

static Password
byCleanPassword(string $cleanPassword)

Create new instance based on a clean password.

changePassword(string $cleanPassword)

Change the actual Password based on clean password.

bool
verify(string $cleanPassword)

Check if the clean password is valid (the same password).

string
__toString()

No description

Details

in ValueObject at line 17
bool equals(ValueObject $valueObject)

Compare if a ValueObject is of the same type and identical value.

Parameters

ValueObject $valueObject

Return Value

bool

in ValueObject at line 22
value()

Return the scalar value.

at line 19
static Password byCleanPassword(string $cleanPassword)

Create new instance based on a clean password.

Parameters

string $cleanPassword

Return Value

Password

at line 27
Password changePassword(string $cleanPassword)

Change the actual Password based on clean password.

Parameters

string $cleanPassword

Return Value

Password

at line 35
bool verify(string $cleanPassword)

Check if the clean password is valid (the same password).

Parameters

string $cleanPassword

Return Value

bool

at line 40
string __toString()

Return Value

string