protected function extractParametersFromClass($callback)
    {
        $reflection = new ReflectionClass($callback);

        if (! $reflection->hasMethod('join')) {
            throw new Exception('Class based channel must define a "join" method.');
        }

        return $reflection->getMethod('join')->getParameters();
    }
protected function extractParametersFromClass($callback)
    {
        $reflection = new ReflectionClass($callback);

        if (! $reflection->hasMethod('join')) {
            throw new Exception('Class based channel must define a "join" method.');
        }

        return $reflection->getMethod('join')->getParameters();
    }
protected function extractParametersFromClass ( $ callback ) { $ reflection = new ReflectionClass ( $ callback ) ; if ( ! $ reflection -> hasMethod ( 'join' ) ) { throw new Exception ( 'Class based channel must define a "join" method.' ) ; } return $ reflection -> getMethod ( 'join' ) -> getParameters ( ) ; }
Extracts the parameters out of a class channel's "join" method.

@param  string  $callback
@return \ReflectionParameter[]

@throws \Exception
Extracts the parameters out of a class channel s join method .