diff --git a/src/Socialbox/Objects/PeerAddress.php b/src/Socialbox/Objects/PeerAddress.php index a2640fe..4372e11 100644 --- a/src/Socialbox/Objects/PeerAddress.php +++ b/src/Socialbox/Objects/PeerAddress.php @@ -109,4 +109,14 @@ { return sprintf("%s@%s", $this->username, $this->domain); } + + /** + * Returns the string representation of the object + * + * @return string The string representation of the object + */ + public function __toString(): string + { + return $this->getAddress(); + } } \ No newline at end of file