public function offsetGet($method)
        {
            $methods = $this->getConsolidatedMethods();

            if (!isset($methods[$method])) {
                throw new Exception("$method, $this->class");
            }

            return $methods[$method];
        }
public function offsetGet($method)
        {
            $methods = $this->getConsolidatedMethods();

            if (!isset($methods[$method])) {
                throw new Exception("$method, $this->class");
            }

            return $methods[$method];
        }
public function offsetGet ( $ method ) { $ methods = $ this -> getConsolidatedMethods ( ) ; if ( ! isset ( $ methods [ $ method ] ) ) { throw new Exception ( "$method, $this->class" ) ; } return $ methods [ $ method ] ; }
Returns the callback associated with the specified method.

@param string $method The name of the method.

@throws Exception if the method is not defined.

@return callable
Returns the callback associated with the specified method .