Skip to content

Commit

Permalink
refactor: annotate enums
Browse files Browse the repository at this point in the history
-
  • Loading branch information
daveroverts committed Jan 2, 2022
1 parent 492cfec commit 14aa88c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Enums/AirportView.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

use BenSampo\Enum\Enum;

/**
* @method static static NAME()
* @method static static ICAO()
* @method static static IATA()
*/
final class AirportView extends Enum
{
public const NAME = 0;
Expand Down
5 changes: 5 additions & 0 deletions app/Enums/BookingStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

use BenSampo\Enum\Enum;

/**
* @method static static UNASSIGNED()
* @method static static RESERVED()
* @method static static BOOKED()
*/
final class BookingStatus extends Enum
{
public const UNASSIGNED = 0;
Expand Down
7 changes: 7 additions & 0 deletions app/Enums/EventType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

use BenSampo\Enum\Enum;

/**
* @method static static ONEWAY()
* @method static static CITYPAIR()
* @method static static FLYIN()
* @method static static GROUPFLIGHT()
* @method static static MULTIFLIGHTS()
*/
final class EventType extends Enum
{
public const ONEWAY = 1;
Expand Down

0 comments on commit 14aa88c

Please sign in to comment.