Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat(model): add Candidate employment status and rearrange the cases
Browse files Browse the repository at this point in the history
Signed-off-by: Fery Wardiyanto <[email protected]>
  • Loading branch information
feryardiant committed Feb 9, 2024
1 parent e155a44 commit 28d8b4f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Models/Enums/EmploymentStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ enum EmploymentStatus: int
{
use KeyableEnum;

case Probation = 0;
case Contract = 1;
case Permanent = 2;
case Candidate = 0;
case Probation = 1;
case Contract = 2;
case Permanent = 3;

public function isCandidate(): bool
{
return $this === self::Candidate;
}

public function isProbation(): bool
{
Expand Down

0 comments on commit 28d8b4f

Please sign in to comment.