*/ public static function values(): array { return array_column(self::cases(), 'value'); } /** * 유효한 값인지 확인합니다. * * @param string $value 검증할 값 * @return bool 유효 여부 */ public static function isValid(string $value): bool { return in_array($value, self::values(), true); } /** * 총 건수가 정확한지 여부를 반환합니다. * * @return bool 정확하면 true */ public function isExact(): bool { return $this === self::Exact; } /** * 다국어 라벨을 반환합니다. * * @return string lang 키 해석 결과 */ public function label(): string { return __('pagination.total_relation.'.$this->value); } }