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

@ -135,15 +135,6 @@ class Repository implements \JsonSerializable {
$this->setFullName($fullName);
}
/**
* 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 repository from the specified JSON map.
* @param object $map A JSON map representing a repository.