| 1 | <?php  | 
            ||
| 10 | trait DontSerialise  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @throws NonSerialisableObject  | 
            ||
| 14 | * @throws TypeError  | 
            ||
| 15 | */  | 
            ||
| 16 | 1 | final public function __sleep() : void  | 
            |
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * @throws NonSerialisableObject  | 
            ||
| 23 | * @throws TypeError  | 
            ||
| 24 | */  | 
            ||
| 25 | 4 | final public function __serialize() : void  | 
            |
| 26 |     { | 
            ||
| 27 | 4 | throw NonSerialisableObject::fromAttemptedSerialisation($this);  | 
            |
| 28 | }  | 
            ||
| 29 | |||
| 30 | /**  | 
            ||
| 31 | * @throws NonSerialisableObject  | 
            ||
| 32 | * @throws TypeError  | 
            ||
| 33 | */  | 
            ||
| 34 | 1 | final public function serialize() : void  | 
            |
| 38 | }  | 
            ||
| 39 |