Throw Exception if the required functions are defined in incorrect order

Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
davidarendsen 2022-09-01 15:17:25 +00:00
commit 3a112f4e79
4 changed files with 103 additions and 68 deletions

View file

@ -0,0 +1,21 @@
<?php
namespace Arendsen\FluxQueryBuilder\Functions;
class RawFunction extends Base
{
/**
* @var string $input
*/
private $input;
public function __construct(string $input)
{
$this->input = $input;
}
public function __toString()
{
return $this->input . ' ';
}
}