getOptions() public method

Get mongo index options
public getOptions ( ) : array
return array
Beispiel #1
0
 public function getOptions()
 {
     $options = parent::getOptions();
     if ($this->isNumber($this->ttl)) {
         $options['expireAfterSeconds'] = $this->ttl;
     }
     return $options;
 }
Beispiel #2
0
 public function getOptions()
 {
     $options = parent::getOptions();
     $options['default_language'] = $this->language;
     return $options;
 }