2022-08-05 15:41:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Arendsen\FluxQueryBuilder\Function;
|
|
|
|
|
|
|
|
|
|
abstract class Base {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @throws FunctionNotImplementedException
|
|
|
|
|
*/
|
|
|
|
|
public function __toString()
|
|
|
|
|
{
|
|
|
|
|
throw new FunctionNotImplementedException('__toString', get_class($this));
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-10 13:30:16 +00:00
|
|
|
protected function format(array $settings)
|
|
|
|
|
{
|
|
|
|
|
array_walk($settings, function(&$value, $key) {
|
|
|
|
|
$value = $key . ': ' . (is_string($value) ? '"' . $value . '"' : $value);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return $settings;
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-05 15:41:38 +00:00
|
|
|
}
|