src/ministruts/ActionMapping.php
public function setMethod($method) {
        if ($this->configured) throw new IllegalStateException('Configuration is frozen');
        $name = $this->name ? ' name="'.$this->name.'"':'';
        $path = $this->path ? ' path="'.$this->path.'"':'';

        $method = strtoupper($method);
        if ($method!='GET' && $method!='POST') throw new StrutsConfigException('<mapping'.$name.''.$path.' methods="'.func_get_arg(0).'":  Invalid HTTP method.');

        $this->methods[$method] = true;
        return $this;
    }
public function setMethod($method) {
        if ($this->configured) throw new IllegalStateException('Configuration is frozen');
        $name = $this->name ? ' name="'.$this->name.'"':'';
        $path = $this->path ? ' path="'.$this->path.'"':'';

        $method = strtoupper($method);
        if ($method!='GET' && $method!='POST') throw new StrutsConfigException('<mapping'.$name.''.$path.' methods="'.func_get_arg(0).'":  Invalid HTTP method.');

        $this->methods[$method] = true;
        return $this;
    }
public function setMethod ( $ method ) { if ( $ this -> configured ) throw new IllegalStateException ( 'Configuration is frozen' ) ; $ name = $ this -> name ? ' name="' . $ this -> name . '"' : '' ; $ path = $ this -> path ? ' path="' . $ this -> path . '"' : '' ; $ method = strtoupper ( $ method ) ; if ( $ method != 'GET' && $ method != 'POST' ) throw new StrutsConfigException ( '<mapping' . $ name . '' . $ path . ' methods="' . func_get_arg ( 0 ) . '":  Invalid HTTP method.' ) ; $ this -> methods [ $ method ] = true ; return $ this ; }
Set the HTTP methods the mapping will be able to handle.

@param  string $method - HTTP method verb

@return $this

@throws StrutsConfigException on configuration errors
Set the HTTP methods the mapping will be able to handle .