Example #1
0
 public function getPath()
 {
     $path = parent::getPath();
     $path['collection'] = $this->_collection;
     $path['key'] = $this->_key;
     if ($this->_tombstone) {
         $path['tombstone'] = $this->_tombstone;
     }
     return $path;
 }
Example #2
0
 public function getPath()
 {
     $path = parent::getPath();
     $path['collection'] = $this->_collection;
     $path['key'] = $this->_key;
     $path['type'] = $this->_type;
     $path['timestamp'] = $this->_timestamp;
     $path['ordinal'] = $this->_ordinal;
     $path['ordinal_str'] = $this->_ordinalStr;
     return $path;
 }
 public function getPath()
 {
     $path = parent::getPath();
     $path['relation'] = $this->_relation;
     $path['source'] = null;
     $path['destination'] = null;
     $source = $this->getSource();
     if ($source) {
         $path['source'] = ['kind' => $source->getKind(), 'collection' => $source->getCollection(), 'key' => $source->getKey()];
     }
     $destination = $this->getDestination();
     if ($destination) {
         $path['destination'] = ['kind' => $destination->getKind(), 'collection' => $destination->getCollection(), 'key' => $destination->getKey()];
     }
     return $path;
 }