コード例 #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;
 }
コード例 #2
0
ファイル: Event.php プロジェクト: andrefelipe/orchestrate-php
 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;
 }
コード例 #3
0
 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;
 }