File manager - Edit - /var/www/html/homologBancodetalentos/app/Support/TalentBank/JobApplicationStatus.php
Back
<?php namespace App\Support\TalentBank; /** * Status da candidatura na tabela pivô job_listing_candidate. */ final class JobApplicationStatus { public const ENROLLED = 'enrolled'; public const PENDING = 'pending'; public const VIEWED = 'viewed'; public const INTERVIEW = 'interview'; public const APPROVED = 'approved'; public const REJECTED = 'rejected'; public const CANCELLED = 'cancelled'; public const CLOSED = 'closed'; /** * @return array<string, string> valor persistido => rótulo */ public static function labels(): array { return [ self::ENROLLED => 'Inscrito', self::PENDING => 'Em análise', self::VIEWED => 'Visualizado', self::INTERVIEW => 'Entrevista', self::APPROVED => 'Aprovado', self::REJECTED => 'Reprovado', self::CANCELLED => 'Cancelado', self::CLOSED => 'Encerrado', ]; } public static function label(string $value): string { return self::labels()[$value] ?? $value; } /** * @return list<string> */ public static function values(): array { return array_keys(self::labels()); } public static function initialOnApply(): string { return self::ENROLLED; } public static function isValid(string $value): bool { return array_key_exists($value, self::labels()); } public static function notificationTypeForStatus(string $status): ?string { return match ($status) { self::PENDING => ApplicationNotificationType::APPLICATION_IN_ANALYSIS, self::VIEWED => ApplicationNotificationType::APPLICATION_VIEWED, self::INTERVIEW => ApplicationNotificationType::INTERVIEW_INVITATION, self::APPROVED => ApplicationNotificationType::APPLICATION_APPROVED, self::REJECTED => ApplicationNotificationType::APPLICATION_REJECTED, self::CANCELLED => ApplicationNotificationType::APPLICATION_WITHDRAWN, self::CLOSED => ApplicationNotificationType::JOB_CLOSED, default => ApplicationNotificationType::STATUS_CHANGED, }; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings