ulmus/src/Query/Fragment.php

16 lines
289 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));
}
}