input/parameter/values/Arguments.php
public function push(string $value) : core\collections\interfaces\Map
    {
        // Grab an Argument for the next index. If we get null here, it means there are no further Arguments
        // that accept values present.
        if (!$argument = $this->definitions->getNextDefinition($this)) {
            throw new exceptions\ArgumentsTooMany($this);
        }

        // Now that we know how to map the Argument via its name, we can safely set its value. Set() will also
        // resolve the case of parameters accepting multiple values.
        return $this->set($argument->getName(), $value);
    }
public function push(string $value) : core\collections\interfaces\Map
    {
        // Grab an Argument for the next index. If we get null here, it means there are no further Arguments
        // that accept values present.
        if (!$argument = $this->definitions->getNextDefinition($this)) {
            throw new exceptions\ArgumentsTooMany($this);
        }

        // Now that we know how to map the Argument via its name, we can safely set its value. Set() will also
        // resolve the case of parameters accepting multiple values.
        return $this->set($argument->getName(), $value);
    }
public function push ( string $ value ) : core \ collections \ interfaces \ Map { // Grab an Argument for the next index. If we get null here, it means there are no further Arguments // that accept values present. if ( ! $ argument = $ this -> definitions -> getNextDefinition ( $ this ) ) { throw new exceptions \ ArgumentsTooMany ( $ this ) ; } // Now that we know how to map the Argument via its name, we can safely set its value. Set() will also // resolve the case of parameters accepting multiple values. return $ this -> set ( $ argument -> getName ( ) , $ value ) ; }
Adds an argument's value to the collection.

Automatically decides on the name of the argument based on the present definition.

@param   string  $value                  The argument's value to set.
@param   $this
@throws  exceptions\ArgumentsTooMany     When the definition does not permit any further arguments.
Adds an argument s value to the collection .