Smile\ElasticsuiteCore\Search\Request\SortOrder\Nested::__construct PHP Метод

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

Constructor.
public __construct ( string $field, string $direction, string $nestedPath, Smile\ElasticsuiteCore\Search\Request\QueryInterface $nestedFilter = null, string $scoreMode = self::SCORE_MODE_MIN, string $name = null )
$field string Sort order field.
$direction string Sort order direction.
$nestedPath string Nested sort path.
$nestedFilter Smile\ElasticsuiteCore\Search\Request\QueryInterface The filter applied to the nested sort.
$scoreMode string Method used to aggregate the sort if there is many match for the filter.
$name string 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;
    }