This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Description
An Enum should not represent a choice itself.
|
public function getChoice() { |
|
$this->order[] = $column . ' ' . $direction->getChoice(); |
In the usage example above, I think, it is better to create an OrderDirectionsEnum (plural) with options of OrderDirection (singluar) if you want, or just integer/char/string.