public function setArguments(array $array = array())
    {
        foreach ($array as $arg) {
            if (!is_scalar($arg)) {
                $type = gettype($arg);
                throw new DomainException("Arguments array should be an array of scalar, but found $type");
            }
            $this->addArgument($arg);
        }

        return $this;
    }
public function setArguments(array $array = array())
    {
        foreach ($array as $arg) {
            if (!is_scalar($arg)) {
                $type = gettype($arg);
                throw new DomainException("Arguments array should be an array of scalar, but found $type");
            }
            $this->addArgument($arg);
        }

        return $this;
    }
public function setArguments ( array $ array = array ( ) ) { foreach ( $ array as $ arg ) { if ( ! is_scalar ( $ arg ) ) { $ type = gettype ( $ arg ) ; throw new DomainException ( "Arguments array should be an array of scalar, but found $type" ) ; } $ this -> addArgument ( $ arg ) ; } return $ this ; }
Set the Directive's arguments

@param array $array [required] An array of string arguments
@return $this
@throws DomainException
Set the Directive s arguments