-
-
Notifications
You must be signed in to change notification settings - Fork 16
Add getBounds() method to range values
#492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Yiisoft\Db\Pgsql\Expression; | ||
|
|
||
| use Yiisoft\Db\Expression\ExpressionInterface; | ||
| use Yiisoft\Db\Pgsql\Column\AbstractMultiRangeColumn; | ||
| use Yiisoft\Db\Pgsql\Column\AbstractRangeColumn; | ||
|
|
||
| /** | ||
| * Represents a range value of {@see AbstractRangeColumn} and {@see AbstractMultiRangeColumn} column types. | ||
| * | ||
| * @template T | ||
| */ | ||
| interface RangeValueInterface extends ExpressionInterface | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this interface be used in the application? It seems we will always be working with a specific implementation.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is only required to limit return types of |
||
| { | ||
| /** | ||
| * Returns the lower and upper bounds of a range, inclusive. | ||
| * | ||
| * @psalm-return array{0: ?T, 1: ?T} | ||
| */ | ||
| public function getBounds(): array; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.