Neos\Flow\Mvc\Controller\Arguments::offsetSet PHP Метод

offsetSet() публичный Метод

Adds or replaces the argument specified by $value. The argument's name is taken from the argument object itself, therefore the $offset does not have any meaning in this context.
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed Offset - not used here
$value mixed The argument.
Результат void
    public function offsetSet($offset, $value)
    {
        if (!$value instanceof Argument) {
            throw new \InvalidArgumentException(sprintf('Controller arguments must be valid %s objects.', Argument::class), 1187953786);
        }
        $argumentName = $value->getName();
        parent::offsetSet($argumentName, $value);
        $this->argumentNames[$argumentName] = true;
    }