protected function getArg($argumentName)
    {
        $arg = $this->args->get($argumentName);

        if ($arg === null) {
            throw new \InvalidArgumentException(
                $this->translator->trans('Undefined loop argument "%name"', ['%name' => $argumentName])
            );
        }

        return $arg;
    }
protected function getArg($argumentName)
    {
        $arg = $this->args->get($argumentName);

        if ($arg === null) {
            throw new \InvalidArgumentException(
                $this->translator->trans('Undefined loop argument "%name"', ['%name' => $argumentName])
            );
        }

        return $arg;
    }
protected function getArg ( $ argumentName ) { $ arg = $ this -> args -> get ( $ argumentName ) ; if ( $ arg === null ) { throw new \ InvalidArgumentException ( $ this -> translator -> trans ( 'Undefined loop argument "%name"' , [ '%name' => $ argumentName ] ) ) ; } return $ arg ; }
Return a loop argument

@param string $argumentName the argument name

@return Argument                  the loop argument.
@throws \InvalidArgumentException if argument is not found in loop argument list
Return a loop argument