public function preserveWhiteSpace($value = true)
    {
        if (!is_bool($value)) {
            throw new InvalidArgumentException(sprintf('%s expects parameter 1 to be boolean, %s given', __METHOD__, gettype($value)));
        }

        $this->document->preserveWhiteSpace = $value;

        return $this;
    }
public function preserveWhiteSpace($value = true)
    {
        if (!is_bool($value)) {
            throw new InvalidArgumentException(sprintf('%s expects parameter 1 to be boolean, %s given', __METHOD__, gettype($value)));
        }

        $this->document->preserveWhiteSpace = $value;

        return $this;
    }
public function preserveWhiteSpace ( $ value = true ) { if ( ! is_bool ( $ value ) ) { throw new InvalidArgumentException ( sprintf ( '%s expects parameter 1 to be boolean, %s given' , __METHOD__ , gettype ( $ value ) ) ) ; } $ this -> document -> preserveWhiteSpace = $ value ; return $ this ; }
Set preserveWhiteSpace property.

@param bool $value

@return \DiDom\Document
Set preserveWhiteSpace property .