3 namespace Wikimedia\NonSerializable
;
8 * A trait that prevents serialization via php's builtin serialize() function.
10 trait NonSerializableTrait
{
13 * @throws LogicException always
16 public function __sleep() {
17 throw new LogicException( 'Instances of ' . get_class( $this ) . ' are not serializable!' );