ulmus/src/Query/Fragment.php
Dave Mc Nicoll 938639a590 - Multiple bugfixe linked to query fragments
- Added a new SearchRequest package to handle search request efficiently
2020-03-28 22:13:29 -04:00

16 lines
358 B
PHP

<?php
namespace Ulmus\Query;
abstract class Fragment {
public int $order = 0;
public abstract function render() : string;
protected function renderSegments(array $segments, string $glue = " ") : string
{
return implode($glue, array_filter($segments, function($i) { return ! is_null($i) && $i !== false && $i !== ""; }));
}
}