diff --git a/src/Illuminate/Queue/SerializesModels.php b/src/Illuminate/Queue/SerializesModels.php index 575dbadf040b..e5d176d72ed2 100644 --- a/src/Illuminate/Queue/SerializesModels.php +++ b/src/Illuminate/Queue/SerializesModels.php @@ -9,44 +9,6 @@ trait SerializesModels { use SerializesAndRestoresModelIdentifiers; - /** - * Prepare the instance for serialization. - * - * @return array - */ - public function __sleep() - { - $properties = (new ReflectionClass($this))->getProperties(); - - foreach ($properties as $property) { - $property->setValue($this, $this->getSerializedPropertyValue( - $this->getPropertyValue($property) - )); - } - - return array_values(array_filter(array_map(function ($p) { - return $p->isStatic() ? null : $p->getName(); - }, $properties))); - } - - /** - * Restore the model after serialization. - * - * @return void - */ - public function __wakeup() - { - foreach ((new ReflectionClass($this))->getProperties() as $property) { - if ($property->isStatic()) { - continue; - } - - $property->setValue($this, $this->getRestoredPropertyValue( - $this->getPropertyValue($property) - )); - } - } - /** * Prepare the instance values for serialization. *