<?php namespace IQDEV\ElasticSearch\Search\Sorting; class SortingField implements Sorting { public string $by; public function __construct(string $by = '') { $this->by = $by; } public function es(): array { return [$this->by]; } }