web-base/Core/Driver/SQL/Expression/DateSub.class.php

23 lines
529 B
PHP
Raw Normal View History

2021-04-08 19:48:04 +02:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Driver\SQL\Expression;
2021-04-08 19:48:04 +02:00
2022-11-18 18:06:46 +01:00
use Core\Driver\SQL\SQL;
2021-04-08 19:48:04 +02:00
class DateSub extends Expression {
private Expression $lhs;
private Expression $rhs;
private string $unit;
public function __construct(Expression $lhs, Expression $rhs, string $unit) {
$this->lhs = $lhs;
$this->rhs = $rhs;
$this->unit = $unit;
}
public function getLHS(): Expression { return $this->lhs; }
public function getRHS(): Expression { return $this->rhs; }
public function getUnit(): string { return $this->unit; }
}