Filters provide a way to search for specific songs. They take care of parsing and escaping. They are used in various other methods like DB::search, Playlist::add_search and more. Refer to the MPD documentation for more information about filters.
new FloFaber\MphpD\Filter(string $tag, string $operator, string $value) : Filter
Creates a new filter.
Filter::__construct(string $tag, string $operator, string $value) : mixed
Tag to be searched for. Like artist, title,...
Comparison operator. Like ==, contains, ~=,...
The value to search for. Unescaped.
mixed
Used to chain multiple filters together with a logical AND.
Filter::and(string $tag, string $operator, string $value) : FloFaber\MphpD\Filter
FloFaber\MphpD\Filter
$this
Generate and return the Filter string.
Filter::__toString() : string
string
string