-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new zones methods to the main API object; fixed a return type; …
…added new enums and exceptions for future dev
- Loading branch information
1 parent
81133d6
commit c9f86ef
Showing
6 changed files
with
185 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?php | ||
|
||
namespace BenjaminHansen\NWS\Enums; | ||
|
||
enum ForecastOffice | ||
{ | ||
case AKQ; | ||
case ALY; | ||
case BGM; | ||
case BOX; | ||
case BTV; | ||
case BUF; | ||
case CAE; | ||
case CAR; | ||
case CHS; | ||
case CLE; | ||
case CTP; | ||
case GSP; | ||
case GYX; | ||
case ILM; | ||
case ILN; | ||
case LWX; | ||
case MHX; | ||
case OKX; | ||
case PBZ; | ||
case PHI; | ||
case RAH; | ||
case RLX; | ||
case RNK; | ||
case ABQ; | ||
case AMA; | ||
case BMX; | ||
case BRO; | ||
case CRP; | ||
case EPZ; | ||
case EWX; | ||
case FFC; | ||
case FWD; | ||
case HGX; | ||
case HUN; | ||
case JAN; | ||
case JAX; | ||
case KEY; | ||
case LCH; | ||
case LIX; | ||
case LUB; | ||
case LZK; | ||
case MAF; | ||
case MEG; | ||
case MFL; | ||
case MLB; | ||
case MOB; | ||
case MRX; | ||
case OHX; | ||
case OUN; | ||
case SHV; | ||
case SJT; | ||
case SJU; | ||
case TAE; | ||
case TBW; | ||
case TSA; | ||
case ABR; | ||
case APX; | ||
case ARX; | ||
case BIS; | ||
case BOU; | ||
case CYS; | ||
case DDC; | ||
case DLH; | ||
case DMX; | ||
case DTX; | ||
case DVN; | ||
case EAX; | ||
case FGF; | ||
case FSD; | ||
case GID; | ||
case GJT; | ||
case GLD; | ||
case GRB; | ||
case GRR; | ||
case ICT; | ||
case ILX; | ||
case IND; | ||
case IWX; | ||
case JKL; | ||
case LBF; | ||
case LMK; | ||
case LOT; | ||
case LSX; | ||
case MKX; | ||
case MPX; | ||
case MQT; | ||
case OAX; | ||
case PAH; | ||
case PUB; | ||
case RIW; | ||
case SGF; | ||
case TOP; | ||
case UNR; | ||
case BOI; | ||
case BYZ; | ||
case EKA; | ||
case FGZ; | ||
case GGW; | ||
case HNX; | ||
case LKN; | ||
case LOX; | ||
case MFR; | ||
case MSO; | ||
case MTR; | ||
case OTX; | ||
case PDT; | ||
case PIH; | ||
case PQR; | ||
case PSR; | ||
case REV; | ||
case SEW; | ||
case SGX; | ||
case SLC; | ||
case STO; | ||
case TFX; | ||
case TWC; | ||
case VEF; | ||
case AER; | ||
case AFC; | ||
case AFG; | ||
case AJK; | ||
case ALU; | ||
case GUM; | ||
case HPA; | ||
case HFO; | ||
case PPG; | ||
case STU; | ||
case NH1; | ||
case NH2; | ||
case ONA; | ||
case ONP; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace BenjaminHansen\NWS\Enums; | ||
|
||
enum RegionalHeadquarters | ||
{ | ||
case ARH; | ||
case CRH; | ||
case ERH; | ||
case PRH; | ||
case SRH; | ||
case WRH; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace BenjaminHansen\NWS\Exceptions; | ||
|
||
use Exception; | ||
|
||
class ForecastOfficeException extends Exception | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters