/** * Gets or sets the method * * @param string:optional $value * * @return string */ public static function method($value = null) { if ($value !== null) { self::$_method = strtoupper($value); } elseif (self::$_method === false) { self::$_method = $_SERVER['REQUEST_METHOD']; } return self::$_method; }