Returns the overridden method name.

@return string
320598
public function method()
    {
        if (isset($this->parameters->post()['_method'])) {
            $method = strtoupper($this->parameters->post()['_method']);
            if (in_array($method, self::$allowedHackMethods)) {
                return $method;
            }
        }
        return $this->getParam('REQUEST_METHOD');
    }
294939
public function getMethod() 
    {
        $this->method || $this->method = strtoupper($this->getServer('REQUEST_METHOD'));
        
        return $this->method;
    }
1163691
public function getMethod()
    {
        if ($this->method === null) {
            $this->method = $this->originalMethod;
            $customMethod = $this->getHeaderLine('X-Http-Method-Override');

            if ($customMethod) {
                $this->method = $this->filterMethod($customMethod);
            } elseif ($this->originalMethod === 'POST') {
                $overrideMethod = $this->filterMethod($this->getParsedBodyParam('_METHOD'));
                if ($overrideMethod !== null) {
                    $this->method = $overrideMethod;
                }

                if ($this->getBody()->eof()) {
                    $this->getBody()->rewind();
                }
            }
        }

        return $this->method;
    }
304724
public function getMethod()
    {
        if ($this->method) {
            return $this->method;
        }

        $method = @$_SERVER['REQUEST_METHOD'];
        if (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']))
            $method = $_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'];

        if (isset($_GET['_method']))
            $method = $_GET['_method'];
        else if (isset($_POST['_method']))
            $method = $_POST['_method'];

        $method = strtolower($method);

        if (!in_array($method, $this->methods))
            $method = 'get';

        return $method;

    }
1442
public function getName()
    {
        if ($this->_name === null) {
            $this->_name = ((new \ReflectionClass($this))->getShortName());
        }
        
        return $this->_name;
    }
328724
public static function name()
    {
        $class = get_called_class();
        if (!isset(self::$names[$class])) {
            self::$names[$class] = self::generateName($class);
        }

        return self::$names[$class];
    }
953790
private function method(): string
    {
        return isset($this->bt['class'])
            ? sprintf('%s::%s()', $this->bt['class'], $this->bt['function'])
            : $this->bt['function'];
    }
392165
public function getRootName(): string
    {
        $className = \get_class($this);
        if ('Bundle\\DependencyInjection\\Configuration' !== mb_substr($className, -40)) {
            throw new BadMethodCallException('This extension does not follow the naming convention; you must overwrite the getRootName() method.');
        }
        $classBaseName = mb_substr($className, 0, mb_strlen($className) - 40);

        return mb_strtolower(str_replace('\\', '_', $classBaseName));
    }
978164
public function getName()
    {
        if ($this->overrideName) {
            return $this->overrideName;
        }

        list(, $name) = Uri\split($this->path);

        return $name;
    }
70998
public function getExtendedName()
    {
        $type = $this->getType();

        if ($type) {
            $extendedName = $type->getName();
        } else {
            $extendedName = '';
        }

        $catTitle = $this->getCategoryTitle();
        if ($catTitle !== null) {
            $extendedName .= '-' . $this->getCategoryTitle();
        }

        $extendedName .= '-' . $this->getName();

        return $extendedName;
    }
1237478
public function displayName()
    {
        $reflection = new ReflectionFunction($this->closure->getClosure());

        return 'Closure ('.basename($reflection->getFileName()).':'.$reflection->getStartLine().')';
    }
1317063
public function getName()
    {
        if (!$this->_name) {
            $class = Type::short($this);
            $this->_name = Helper::rtrimWord(Type::snake_case($class, '-'), '-type');
        }

        return $this->_name;

    }
1011045
public static function getMethod() {
    if(null === self::$method) {
      // Make the method upper case.
      self::$method = @strtoupper($_SERVER['REQUEST_METHOD']);

      // A quick-and-dirty test to drop invalid methods.
      if(!self::$method || !ctype_upper(self::$method)) {
        self::$method = '';
      }
    }
    return self::$method;
  }
968637
public function getService()
    {
        if (!isset($this->service)) {
            $info = $this->getInfo();
            $this->service = $this->service();

            // Apply the overridden property values.
            foreach (static::PROPERTIES_OVERRIDE as $property) {
                if (!isset($info[$property]) || empty($info[$property])) {
                    continue;
                }
                $method = 'set' . ucwords($property);

                if (is_callable([$this->service, $method])) {
                    call_user_func_array([$this->service, $method], [$info[$property]]);
                }
            }
        }

        return $this->service;
    }
218004
public function usageHelp()
    {
        $help = 'Available actions: ' . "\n";
        $methods = get_class_methods($this);
        foreach ($methods as $method) {
            if (substr($method, -6) == 'Action') {
                $help .= '    --action ' . substr($method, 0, -6);
                $helpMethod = $method . 'Help';
                if (method_exists($this, $helpMethod)) {
                    $help .= ' ' . $this->$helpMethod();
                }
                $help .= "\n";
            }
        }
        return $help;
    }
941125
public function getFilename()
    {
        if (is_null($this->filename) === true) {
            $str = new StringWrapper(parent::getFilename());
            $this->filename = $str->deleteSufix('.'.$this->getExtension());
        }

        return $this->filename;
    }
1023016
public function getMethod()
    {
        if (!$this->method) {
            if (isset($_SERVER['REQUEST_METHOD'])) {
                $this->method = strtoupper($_SERVER['REQUEST_METHOD']);
            }
        }

        return $this->method;
    }