コード例 #1
0
ファイル: GeoSort.php プロジェクト: N3m1s/ElasticsearchBundle
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $value = parent::toArray();
     if ($this->getUnit() !== null) {
         $value['unit'] = $this->getUnit();
     }
     $value[$this->getField()] = $this->getLocation();
     return $value;
 }
コード例 #2
0
ファイル: MergeSort.php プロジェクト: rendix2/QW_MVS
 public function __construct(array $data)
 {
     return parent::__construct($data);
 }