Go\Aop\Framework\DeclareErrorInterceptor::unserialize PHP Method

unserialize() public method

Unserialize an interceptor from the string
public unserialize ( string $serialized ) : void
$serialized string The string representation of the object.
return void
    public function unserialize($serialized)
    {
        $vars = unserialize($serialized);
        $vars['adviceMethod'] = self::getDeclareErrorAdvice();
        foreach ($vars as $key => $value) {
            $this->{$key} = $value;
        }
    }