private function addSitemapLine(string $line): void
    {
        if ($this->bufferUrlCount >= self::LIMIT_URL) {
            $this->generateNewPart();
        }

        if (($this->bufferSize + \strlen($line) + 9) > self::LIMIT_SIZE) {
            $this->generateNewPart();
        }

        ++$this->bufferUrlCount;

        $this->bufferSize += fwrite($this->buffer, $line);
    }
private function addSitemapLine(string $line): void
    {
        if ($this->bufferUrlCount >= self::LIMIT_URL) {
            $this->generateNewPart();
        }

        if (($this->bufferSize + \strlen($line) + 9) > self::LIMIT_SIZE) {
            $this->generateNewPart();
        }

        ++$this->bufferUrlCount;

        $this->bufferSize += fwrite($this->buffer, $line);
    }
private function addSitemapLine ( string $ line ) : void { if ( $ this -> bufferUrlCount >= self :: LIMIT_URL ) { $ this -> generateNewPart ( ) ; } if ( ( $ this -> bufferSize + \ strlen ( $ line ) + 9 ) > self :: LIMIT_SIZE ) { $ this -> generateNewPart ( ) ; } ++ $ this -> bufferUrlCount ; $ this -> bufferSize += fwrite ( $ this -> buffer , $ line ) ; }
Add a new line into the sitemap part.
Add a new line into the sitemap part .