Spanner/src/KeySet.php
public function keySetObject()
    {
        $ranges = [];
        foreach ($this->ranges as $range) {
            $ranges[] = $range->keyRangeObject();
        }

        $set = [];

        if ($this->all) {
            $set['all'] = true;
        }

        if ($this->keys) {
            $set['keys'] = $this->keys;
        }

        if ($ranges) {
            $set['ranges'] = $ranges;
        }

        return $set;
    }
public function keySetObject()
    {
        $ranges = [];
        foreach ($this->ranges as $range) {
            $ranges[] = $range->keyRangeObject();
        }

        $set = [];

        if ($this->all) {
            $set['all'] = true;
        }

        if ($this->keys) {
            $set['keys'] = $this->keys;
        }

        if ($ranges) {
            $set['ranges'] = $ranges;
        }

        return $set;
    }
public function keySetObject ( ) { $ ranges = [ ] ; foreach ( $ this -> ranges as $ range ) { $ ranges [ ] = $ range -> keyRangeObject ( ) ; } $ set = [ ] ; if ( $ this -> all ) { $ set [ 'all' ] = true ; } if ( $ this -> keys ) { $ set [ 'keys' ] = $ this -> keys ; } if ( $ ranges ) { $ set [ 'ranges' ] = $ ranges ; } return $ set ; }
Format a KeySet object for use in the Spanner API.

@access private
Format a KeySet object for use in the Spanner API .