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.
An Enum should not represent a choice itself.
orm/src/Common/Enum.php
Line 42 in 0573330
orm/src/Query/SelectQuery.php
Line 233 in 0573330
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.