column; } public function getDirection(): SortDirection { return $this->direction; } public function isStringField(): bool { return $this->isStringField; } /** * Build the enum case for a direction. * Template: {FIELD_NAME}. * Template: {FIELD_NAME}_DESC. */ public function __toString(): string { return $this->sortCase->name; } /** * Apply the ordering to the current Eloquent builder. */ abstract public function sort(Builder $builder): Builder; }