1 | <?php |
||
9 | class NonStringableObject extends LogicException implements ExceptionInterface |
||
10 | { |
||
11 | private const ERROR_TEMPLATE = <<<'ERROR' |
||
12 | The given object %s#%s is not designed to be stringable. |
||
13 | |||
14 | You tried to access a method called "__toString()". |
||
15 | ERROR; |
||
16 | |||
17 | /** |
||
18 | * @return NonStringableObject |
||
19 | */ |
||
20 | 2 | public static function fromAttemptedToString(object $object) : self |
|
30 | } |
||
31 |