public function setArguments(array $arguments)
    {
        $this->arguments = array();
        $this->hasOptionalArg = false;
        $this->hasMultiValuedArg = false;

        $this->addArguments($arguments);

        return $this;
    }
public function setArguments(array $arguments)
    {
        $this->arguments = array();
        $this->hasOptionalArg = false;
        $this->hasMultiValuedArg = false;

        $this->addArguments($arguments);

        return $this;
    }
public function setArguments ( array $ arguments ) { $ this -> arguments = array ( ) ; $ this -> hasOptionalArg = false ; $ this -> hasMultiValuedArg = false ; $ this -> addArguments ( $ arguments ) ; return $ this ; }
Sets the arguments of the built format.

Any existing arguments are removed when this method is called.

@param Argument[] $arguments The arguments of the built format.

@return static The current instance.

@throws CannotAddArgumentException If an argument cannot be added.

@see addArgument()
Sets the arguments of the built format .