public function unserializeClosure(string $string, bool $faster = false): \Closure
    {
        if (mb_strpos($string, $this::CLOSURE) === 0) {
            $string = mb_substr($string, mb_strlen($this::CLOSURE));
        }
        return $this->{$faster ? 'ClosureTokenSerializer' : 'ClosureAstSerializer'}->unserialize($string);
    }
public function unserializeClosure(string $string, bool $faster = false): \Closure
    {
        if (mb_strpos($string, $this::CLOSURE) === 0) {
            $string = mb_substr($string, mb_strlen($this::CLOSURE));
        }
        return $this->{$faster ? 'ClosureTokenSerializer' : 'ClosureAstSerializer'}->unserialize($string);
    }
public function unserializeClosure ( string $ string , bool $ faster = false ) : \ Closure { if ( mb_strpos ( $ string , $ this :: CLOSURE ) === 0 ) { $ string = mb_substr ( $ string , mb_strlen ( $ this :: CLOSURE ) ) ; } return $ this -> { $ faster ? 'ClosureTokenSerializer' : 'ClosureAstSerializer' } -> unserialize ( $ string ) ; }
Unserialize closure.

@since 160712 Closure utils.

@param string $string A serialized closure.
@param bool   $faster Used faster serializer?

@return \Closure Unserialized closure.
Unserialize closure .