__construct() публичный Метод

Constructor.
public __construct ( string $field, string $direction, string $name = null )
$field string Sort order field.
$direction string Sort order direction.
$name string Sort order name.
Пример #1
0
 /**
  * Constructor.
  * @param string         $field        Sort order field.
  * @param string         $direction    Sort order direction.
  * @param string         $nestedPath   Nested sort path.
  * @param QueryInterface $nestedFilter The filter applied to the nested sort.
  * @param string         $scoreMode    Method used to aggregate the sort if there is many match for the filter.
  * @param string         $name         Sort order name.
  */
 public function __construct($field, $direction, $nestedPath, QueryInterface $nestedFilter = null, $scoreMode = self::SCORE_MODE_MIN, $name = null)
 {
     parent::__construct($field, $direction, $name);
     $this->nestedFilter = $nestedFilter;
     $this->nestedPath = $nestedPath;
     $this->scoreMode = $scoreMode;
 }