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

@ -35,15 +35,6 @@ class PayloadCommitVerification implements \JsonSerializable {
$this->setVerified($isVerified);
}
/**
* 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 commit from the specified JSON map.
* @param object $map A JSON map representing a commit.