Spanner/src/KeyRange.php
public function keyRangeObject()
    {
        if (!$this->start || !$this->end) {
            throw new \BadMethodCallException('Key Range must supply a start and an end');
        }

        return [
            $this->startType => $this->start,
            $this->endType => $this->end
        ];
    }
public function keyRangeObject()
    {
        if (!$this->start || !$this->end) {
            throw new \BadMethodCallException('Key Range must supply a start and an end');
        }

        return [
            $this->startType => $this->start,
            $this->endType => $this->end
        ];
    }
public function keyRangeObject ( ) { if ( ! $ this -> start || ! $ this -> end ) { throw new \ BadMethodCallException ( 'Key Range must supply a start and an end' ) ; } return [ $ this -> startType => $ this -> start , $ this -> endType => $ this -> end ] ; }
Returns an API-compliant representation of a KeyRange.

@return array
@access private
Returns an API - compliant representation of a KeyRange .