public function addArgument($arg)
    {
        if (!is_scalar($arg)) {
            throw new InvalidArgumentException('scalar', 0);
        }
        if (!in_array($arg, $this->arguments)) {
            $this->arguments[] = $arg;
        }

        return $this;
    }
public function addArgument($arg)
    {
        if (!is_scalar($arg)) {
            throw new InvalidArgumentException('scalar', 0);
        }
        if (!in_array($arg, $this->arguments)) {
            $this->arguments[] = $arg;
        }

        return $this;
    }
public function addArgument ( $ arg ) { if ( ! is_scalar ( $ arg ) ) { throw new InvalidArgumentException ( 'scalar' , 0 ) ; } if ( ! in_array ( $ arg , $ this -> arguments ) ) { $ this -> arguments [ ] = $ arg ; } return $ this ; }
Add an argument to the Block arguments array

@param mixed $arg [required] A scalar
@return $this
@throws InvalidArgumentException
Add an argument to the Block arguments array