private function buildEntry(Filter $filter): string
    {
        $entry = collect($filter->toArray())
            ->map(function ($value, $key): string {
                return $this->buildProperty($value, $key);
            })
            ->implode($this->glue());

        return collect(['<entry>', $entry, '</entry>'])->implode($this->glue());
    }
private function buildEntry(Filter $filter): string
    {
        $entry = collect($filter->toArray())
            ->map(function ($value, $key): string {
                return $this->buildProperty($value, $key);
            })
            ->implode($this->glue());

        return collect(['<entry>', $entry, '</entry>'])->implode($this->glue());
    }
private function buildEntry ( Filter $ filter ) : string { $ entry = collect ( $ filter -> toArray ( ) ) -> map ( function ( $ value , $ key ) : string { return $ this -> buildProperty ( $ value , $ key ) ; } ) -> implode ( $ this -> glue ( ) ) ; return collect ( [ '<entry>' , $ entry , '</entry>' ] ) -> implode ( $ this -> glue ( ) ) ; }
Build XML for an filter.

@param Filter $filter

@return string
Build XML for an filter .