Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InputDefinition.php

function InputDefinition::getArgumentCount

Returns the number of InputArguments.

File

vendor/symfony/console/Input/InputDefinition.php, line 163

Class

InputDefinition
A InputDefinition represents a set of valid command line arguments and options.

Namespace

Symfony\Component\Console\Input

Code

public function getArgumentCount() : int {
    return null !== $this->lastArrayArgument ? \PHP_INT_MAX : \count($this->arguments);
}
RSS feed
Powered by Drupal