1 | <?php |
||
9 | class NonSettableObject extends LogicException implements ExceptionInterface |
||
10 | { |
||
11 | private const ERROR_TEMPLATE = <<<'ERROR' |
||
12 | The given object %s#%s is not designed to allow any undefined or inaccessible properties to be written to. |
||
13 | |||
14 | You tried to write to a property called "%s". |
||
15 | |||
16 | Perhaps you made a typo in the property name, or tried to write to an inaccessible property? |
||
17 | ERROR; |
||
18 | |||
19 | /** |
||
20 | * @param object $object |
||
21 | * @throws TypeError |
||
22 | */ |
||
23 | 9 | public static function fromAttemptedSet($object, string $property) : self |
|
38 | } |
||
39 |