protected function extractParameters($callback)
    {
        if (is_callable($callback)) {
            return (new ReflectionFunction($callback))->getParameters();
        } elseif (is_string($callback)) {
            return $this->extractParametersFromClass($callback);
        }

        throw new Exception('Given channel handler is an unknown type.');
    }
protected function extractParameters($callback)
    {
        if (is_callable($callback)) {
            return (new ReflectionFunction($callback))->getParameters();
        } elseif (is_string($callback)) {
            return $this->extractParametersFromClass($callback);
        }

        throw new Exception('Given channel handler is an unknown type.');
    }
protected function extractParameters ( $ callback ) { if ( is_callable ( $ callback ) ) { return ( new ReflectionFunction ( $ callback ) ) -> getParameters ( ) ; } elseif ( is_string ( $ callback ) ) { return $ this -> extractParametersFromClass ( $ callback ) ; } throw new Exception ( 'Given channel handler is an unknown type.' ) ; }
Extracts the parameters out of what the user passed to handle the channel authentication.

@param  callable|string  $callback
@return \ReflectionParameter[]

@throws \Exception
Extracts the parameters out of what the user passed to handle the channel authentication .