protected function buildSerializableClosure(\Closure $closure)
    {
        switch (true) {
            case class_exists('SuperClosure\\SerializableClosure'):
                return new \SuperClosure\SerializableClosure($closure);

            default:
                return new \Jeremeamia\SuperClosure\SerializableClosure($closure);
        }
    }
protected function buildSerializableClosure(\Closure $closure)
    {
        switch (true) {
            case class_exists('SuperClosure\\SerializableClosure'):
                return new \SuperClosure\SerializableClosure($closure);

            default:
                return new \Jeremeamia\SuperClosure\SerializableClosure($closure);
        }
    }
protected function buildSerializableClosure ( \ Closure $ closure ) { switch ( true ) { case class_exists ( 'SuperClosure\\SerializableClosure' ) : return new \ SuperClosure \ SerializableClosure ( $ closure ) ; default : return new \ Jeremeamia \ SuperClosure \ SerializableClosure ( $ closure ) ; } }
Build SerializableClosure from Closure

@param  Closure $closure
@return Jeremeamia\SuperClosure\SerializableClosure|SuperClosure\SerializableClosure
Build SerializableClosure from Closure