2021-04-10 01:33:40 +02:00
|
|
|
<?php
|
|
|
|
|
2022-11-18 18:06:46 +01:00
|
|
|
namespace Core\Driver\SQL\Expression;
|
2021-04-10 01:33:40 +02:00
|
|
|
|
|
|
|
class Sum extends Expression {
|
|
|
|
|
|
|
|
private $value;
|
|
|
|
private string $alias;
|
|
|
|
|
|
|
|
public function __construct($value, string $alias) {
|
|
|
|
$this->value = $value;
|
|
|
|
$this->alias = $alias;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getValue() { return $this->value; }
|
|
|
|
public function getAlias(): string { return $this->alias; }
|
|
|
|
|
|
|
|
}
|