by = $by; $this->direction = $direction; $this->properties = $properties; } public function es(): array { return array_merge([$this->by => $this->direction::getType()], $this->properties); } }