Final Class Yiisoft\Db\Pgsql\Expression\Builder\NumRangeValueBuilder
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Builds expressions for {@see NumRangeValue}.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| build() | Yiisoft\ |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| getBoundColumn() | Yiisoft\ |
Method Details
| public string build ( \ | ||
| $expression | \ |
|
| $params | array | |
final public function build(ExpressionInterface $expression, array &$params = []): string
{
$column = $this->getBoundColumn();
return '\''
. ($expression->includeLower ? '[' : '(')
. $this->prepareBoundValue($expression->lower, $column)
. ','
. $this->prepareBoundValue($expression->upper, $column)
. ($expression->includeUpper ? ']' : ')')
. '\'';
}
| protected \ |
protected function getBoundColumn(): ColumnInterface
{
return RangeBoundColumnFactory::num();
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.