value = $value; } public function compare(SortableInterface $obj, int $order = SortOrder::ASC) : bool { return $order === SortOrder::ASC ? $this->value > $obj->value : $this->value < $obj->value; } }