Neos\Flow\ObjectManagement\Configuration\ConfigurationArgument::getIndex PHP Method

getIndex() public method

Returns the index (position) of the argument
public getIndex ( ) : string
return string Index of the argument
    public function getIndex()
    {
        return $this->index;
    }

Usage Example

 /**
  * Setter function for a single constructor argument
  *
  * @param ConfigurationArgument $argument The argument
  * @return void
  */
 public function setArgument(ConfigurationArgument $argument)
 {
     $this->arguments[$argument->getIndex()] = $argument;
 }