Removed some '__toString()' methods

This commit is contained in:
Cédric Belin
2019-03-24 19:57:51 +01:00
parent 1f27843b41
commit decaa29b81
10 changed files with 0 additions and 90 deletions

View File

@ -30,15 +30,6 @@ class PayloadUser implements \JsonSerializable {
$this->username = $username;
}
/**
* Returns a string representation of this object.
* @return string The string representation of this object.
*/
function __toString(): string {
$json = json_encode($this, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
return static::class." $json";
}
/**
* Creates a new user from the specified JSON map.
* @param object $map A JSON map representing a user.