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

        $this->arguments = $arguments;

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

        $this->arguments = $arguments;

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

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