| 1 | <?php |
||
| 19 | class CompilerPayload |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $actualSQL; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var BuilderInterface |
||
| 28 | */ |
||
| 29 | private $builder; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param BuilderInterface $builder |
||
| 33 | * @param string|null $actualSQL |
||
| 34 | */ |
||
| 35 | public function __construct(BuilderInterface $builder, $actualSQL = null) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getActualSQL() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return BuilderInterface |
||
| 51 | */ |
||
| 52 | public function getBuilder() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $newSQL |
||
| 59 | * |
||
| 60 | * @return CompilerPayload |
||
| 61 | */ |
||
| 62 | public function updateSQL($newSQL) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param string $newSQL |
||
| 69 | * |
||
| 70 | * @return CompilerPayload |
||
| 71 | */ |
||
| 72 | public function appendSQL($newSQL) |
||
| 80 | } |