public function setArguments(array $arguments)
    {
        $this->arguments = [];
        foreach ($arguments as $key => $value) {
            $this->setArgument($key, $value);
        }
    }
public function setArguments(array $arguments)
    {
        $this->arguments = [];
        foreach ($arguments as $key => $value) {
            $this->setArgument($key, $value);
        }
    }
public function setArguments ( array $ arguments ) { $ this -> arguments = [ ] ; foreach ( $ arguments as $ key => $ value ) { $ this -> setArgument ( $ key , $ value ) ; } }
Sets the specified arguments.

The arguments array will be reset therefore any arguments
which existed before will be overwritten!

@param array $arguments An array of argument names and their values
@return void
@throws Exception\InvalidArgumentNameException if an argument name is not a string
@throws Exception\InvalidArgumentTypeException if an argument value is an object
Sets the specified arguments .