We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8809c commit 6159587Copy full SHA for 6159587
src/PhpValueObject/User/Password.php
@@ -54,4 +54,12 @@ public function equals(ValueObject $valueObjectToCompare): bool
54
{
55
return ($this->pwd() === $valueObjectToCompare->pwd());
56
}
57
+
58
+ /**
59
+ * @return string
60
+ */
61
+ public function __toString()
62
+ {
63
+ return $this->pwd;
64
+ }
65
src/PhpValueObject/User/Username.php
@@ -50,6 +50,14 @@ public function username(): string
50
return $this->username;
51
52
53
+ return $this->username;
/**
* Compare a value object with another one.
*
0 commit comments