private function build(): void
    {
        $prefix = "<?xml version='1.0' encoding='UTF-8'?>" . $this->glue() . "<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>";
        $suffix = '</feed>';

        $xml = collect($this->filters)->map(function ($items) {
            return $this->buildEntry($items);
        })->implode($this->glue());

        $this->xml = collect([$prefix, $xml, $suffix])->implode($this->glue());

        if ($this->writeFile) {
            $this->filesystem->dumpFile($this->outputFile, $this->xml);
        }
    }
private function build(): void
    {
        $prefix = "<?xml version='1.0' encoding='UTF-8'?>" . $this->glue() . "<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>";
        $suffix = '</feed>';

        $xml = collect($this->filters)->map(function ($items) {
            return $this->buildEntry($items);
        })->implode($this->glue());

        $this->xml = collect([$prefix, $xml, $suffix])->implode($this->glue());

        if ($this->writeFile) {
            $this->filesystem->dumpFile($this->outputFile, $this->xml);
        }
    }
private function build ( ) : void { $ prefix = "<?xml version='1.0' encoding='UTF-8'?>" . $ this -> glue ( ) . "<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>" ; $ suffix = '</feed>' ; $ xml = collect ( $ this -> filters ) -> map ( function ( $ items ) { return $ this -> buildEntry ( $ items ) ; } ) -> implode ( $ this -> glue ( ) ) ; $ this -> xml = collect ( [ $ prefix , $ xml , $ suffix ] ) -> implode ( $ this -> glue ( ) ) ; if ( $ this -> writeFile ) { $ this -> filesystem -> dumpFile ( $ this -> outputFile , $ this -> xml ) ; } }
Build XML for a set of filters.

@return string
Build XML for a set of filters .