for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Belamov\PostgresRange\Ranges;
/**
* Class IntegerRange.
*
* @method int|null from()
* @method int|null to()
*/
class IntegerRange extends CanonicalRange
{
* @param string $boundary
* @return string
protected function addToDiscreteBoundary(string $boundary): string
return (string) ($this->transformBoundary($boundary) + 1);
}
* @return int
protected function transformBoundary(string $boundary): int
return (int) $boundary;
public function forSql(): string
return "'$this'";