Password
interface Password implements ValueObject
Interface Password
Methods
bool
from ValueObject
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.
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.
at line 27
Password
changePassword(string $cleanPassword)
Change the actual Password based on clean password.
at line 35
bool
verify(string $cleanPassword)
Check if the clean password is valid (the same password).