Add a CANCELLED state for PIREPs

This commit is contained in:
Nabeel Shahzad
2018-01-03 09:49:32 -06:00
parent 2bcfe76289
commit 8744a8b17b
2 changed files with 6 additions and 3 deletions

View File

@@ -9,11 +9,13 @@ class PirepState extends EnumBase {
const IN_PROGRESS = 0; const IN_PROGRESS = 0;
const PENDING = 1; const PENDING = 1;
const ACCEPTED = 2; const ACCEPTED = 2;
const CANCELLED = 3;
protected static $labels = [ protected static $labels = [
PirepState::REJECTED => 'system.pireps.state.rejected', PirepState::REJECTED => 'system.pireps.state.rejected',
PirepState::IN_PROGRESS => 'system.pireps.state.in_progress', PirepState::IN_PROGRESS => 'system.pireps.state.in_progress',
PirepState::PENDING => 'system.pireps.state.pending', PirepState::PENDING => 'system.pireps.state.pending',
PirepState::ACCEPTED => 'system.pireps.state.accepted', PirepState::ACCEPTED => 'system.pireps.state.accepted',
PirepState::CANCELLED => 'system.pireps.state.cancelled',
]; ];
} }

View File

@@ -13,10 +13,11 @@ return [
'pireps' => [ 'pireps' => [
'state' => [ 'state' => [
'accepted' => 'Accepted', 'accepted' => 'Accepted',
'pending' => 'Pending', 'pending' => 'Pending',
'rejected' => 'Rejected', 'rejected' => 'Rejected',
'in_progress' => 'In Progress', 'in_progress' => 'In Progress',
'cancelled' => 'Cancelled',
], ],
], ],
]; ];