public function getMethod($name)
    {
        if ($this->hasMethod($name)) {
            return $this->methods[$name];
        }
        throw new ModelException(
            'Method ' . $name . ' does not exist.'
        );
    }
public function getMethod($name)
    {
        if ($this->hasMethod($name)) {
            return $this->methods[$name];
        }
        throw new ModelException(
            'Method ' . $name . ' does not exist.'
        );
    }
public function getMethod ( $ name ) { if ( $ this -> hasMethod ( $ name ) ) { return $ this -> methods [ $ name ] ; } throw new ModelException ( 'Method ' . $ name . ' does not exist.' ) ; }
Gets a MethodModel for a class method.

@param string $name The method name to reflect.

@return MethodModel
@throws ModelException if the method does not exist.
Gets a MethodModel for a class method .