Skip to content

Commit

Permalink
Introduces Enums
Browse files Browse the repository at this point in the history
  • Loading branch information
marcreichel committed Jan 11, 2019
1 parent 4f2fc9d commit 0474afb
Show file tree
Hide file tree
Showing 36 changed files with 542 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "marcreichel/igdb-laravel",
"description": "A Laravel Wrapper for the IGDB API v3",
"keywords": ["laravel", "api", "igdb", "apicalypse", "wrapper"],
"keywords": ["laravel", "api-wrapper", "igdb", "igdb-api", "apicalypse", "wrapper"],
"require": {
"php": "^7.1.3",
"laravel/framework": "5.7.*",
Expand Down
11 changes: 11 additions & 0 deletions src/Enums/Achievement/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Achievement;


class Category
{
const PLAYSTATION = 1;
const XBOX = 2;
const STEAM = 3;
}
18 changes: 18 additions & 0 deletions src/Enums/Achievement/Language.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Achievement;


class Language
{
const EUROPE = 1;
const NORTH_AMERICA = 2;
const AUSTRALIA = 3;
const NEW_ZEALAND = 4;
const JAPAN = 5;
const CHINA = 6;
const ASIA = 7;
const WORLDWIDE = 8;
const HONG_KONG = 9;
const SOUTH_KOREA = 10;
}
12 changes: 12 additions & 0 deletions src/Enums/Achievement/Rank.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Achievement;


class Rank
{
const Bronze = 1;
const Silver = 2;
const Gold = 3;
const Platinum = 4;
}
10 changes: 10 additions & 0 deletions src/Enums/AgeRating/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\AgeRating;


class Category
{
const ESRB = 1;
const PEGI = 2;
}
20 changes: 20 additions & 0 deletions src/Enums/AgeRating/Rating.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\AgeRating;


class Rating
{
const THREE = 1;
const SEVEN = 2;
const TWELVE = 3;
const SIXTEEN = 4;
const EIGHTEEN = 5;
const RP = 6;
const EC = 7;
const E = 8;
const E10 = 9;
const T = 10;
const M = 11;
const AO = 12;
}
10 changes: 10 additions & 0 deletions src/Enums/AgeRatingContentDescription/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\AgeRatingContentDescription;


class Category
{
const PEGI = 1;
const ESRB = 2;
}
11 changes: 11 additions & 0 deletions src/Enums/Character/Gender.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Character;


class Gender
{
const MALE = 1;
const FEMALE = 2;
const OTHER = 3;
}
13 changes: 13 additions & 0 deletions src/Enums/Character/Species.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Character;


class Species
{
const HUMAN = 1;
const ALIEN = 2;
const ANIMAL = 3;
const ANDROID = 4;
const UNKNOWN = 5;
}
16 changes: 16 additions & 0 deletions src/Enums/Company/ChangeDateCategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Company;


class ChangeDateCategory
{
const YYYYMMMMDD = 0;
const YYYYMMMM = 1;
const YYYY = 2;
const YYYYQ1 = 3;
const YYYYQ2 = 4;
const YYYYQ3 = 5;
const YYYYQ4 = 6;
const TBD = 7;
}
16 changes: 16 additions & 0 deletions src/Enums/Company/StartDateCategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Company;


class StartDateCategory
{
const YYYYMMMMDD = 0;
const YYYYMMMM = 1;
const YYYY = 2;
const YYYYQ1 = 3;
const YYYYQ2 = 4;
const YYYYQ3 = 5;
const YYYYQ4 = 6;
const TBD = 7;
}
27 changes: 27 additions & 0 deletions src/Enums/CompanyWebsite/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\CompanyWebsite;


class Category
{
const OFFICIAL = 1;
const WIKIA = 2;
const WIKIPEDIA = 3;
const FACEBOOK = 4;
const TWITTER = 5;
const TWITCH = 6;
const INSTAGRAM = 8;
const YOUTUBE = 9;
const IPHONE = 10;
const IPAD = 11;
const ANDROID = 12;
const STEAM = 13;
const REDDIT = 14;
const DISCORD = 15;
const GOOGLE_PLUS = 16;
const TUMBLR = 17;
const LINKEDIN = 18;
const PINTEREST = 19;
const SOUNDCLOUD = 20;
}
14 changes: 14 additions & 0 deletions src/Enums/Credit/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Credit;


class Category
{
const VOICE_ACTOR = 1;
const LANGUAGE = 2;
const COMPANY_CREDIT = 3;
const EMPLOYEE = 4;
const MISC = 5;
const SUPPORT_COMPANY = 6;
}
15 changes: 15 additions & 0 deletions src/Enums/ExternalGame/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\ExternalGame;


class Category
{
const STEAM = 1;
const GOG = 5;
const YOUTUBE = 10;
const MICROSOFT = 11;
const APPLE = 13;
const TWITCH = 14;
const ANDROID = 15;
}
14 changes: 14 additions & 0 deletions src/Enums/Feed/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Feed;


class Category
{
const PULSE_ARTICLE = 1;
const COMING_SOON = 2;
const NEW_TRAILER = 3;
const USER_CONTRIBUTED_ITEM = 5;
const USER_CONTRIBUTIONS_ITEM = 6;
const PAGE_CONTRIBUTED_ITEM = 7;
}
14 changes: 14 additions & 0 deletions src/Enums/FeedFollow/Feed.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\FeedFollow;


class Feed
{
const PULSE_ARTICLE = 1;
const COMING_SOON = 2;
const NEW_TRAILER = 3;
const USER_CONTRIBUTED_ITEM = 5;
const USER_CONTRIBUTIONS_ITEM = 6;
const PAGE_CONTRIBUTED_ITEM = 7;
}
13 changes: 13 additions & 0 deletions src/Enums/Game/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Game;


class Category
{
const MAIN_GAME = 0;
const DLC_ADDON = 1;
const EXPANSION = 2;
const BUNDLE = 3;
const STANDALONE_EXPANSION = 4;
}
14 changes: 14 additions & 0 deletions src/Enums/Game/Status.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Game;


class Status
{
const RELEASED = 0;
const ALPHA = 2;
const BETA = 3;
const EARLY_ACCESS = 4;
const OFFLINE = 5;
const CANCELLED = 6;
}
10 changes: 10 additions & 0 deletions src/Enums/GameVersionFeature/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\GameVersionFeature;


class Category
{
const BOOLEAN = 0;
const DESCRIPTION = 1;
}
11 changes: 11 additions & 0 deletions src/Enums/GameVersionFeatureValue/IncludedFeature.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\GameVersionFeatureValue;


class IncludedFeature
{
const NOT_INCLUDED = 0;
const INCLUDED = 1;
const PRE_ORDER_ONLY = 2;
}
12 changes: 12 additions & 0 deletions src/Enums/Page/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Page;


class Category
{
const PERSONALITY = 1;
const MEDIA_ORGANIZATION = 2;
const CONTENT_CREATOR = 3;
const CLAN_TEAM = 4;
}
14 changes: 14 additions & 0 deletions src/Enums/Page/Color.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Page;


class Color
{
const GREEN = 0;
const BLUE = 1;
const RED = 2;
const ORANGE = 3;
const PINK = 4;
const YELLOW = 5;
}
14 changes: 14 additions & 0 deletions src/Enums/Page/SubCategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Page;


class SubCategory
{
const USER = 1;
const GAME = 2;
const COMPANY = 3;
const CONSUMER = 4;
const INDUSTRY = 5;
const E_SPORTS = 6;
}
27 changes: 27 additions & 0 deletions src/Enums/PageWebsite/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\PageWebsite;


class Category
{
const OFFICIAL = 1;
const WIKIA = 2;
const WIKIPEDIA = 3;
const FACEBOOK = 4;
const TWITTER = 5;
const TWITCH = 6;
const INSTAGRAM = 8;
const YOUTUBE = 9;
const IPHONE = 10;
const IPAD = 11;
const ANDROID = 12;
const STEAM = 13;
const REDDIT = 14;
const DISCORD = 15;
const GOOGLE_PLUS = 16;
const TUMBLR = 17;
const LINKEDIN = 18;
const PINTEREST = 19;
const SOUNDCLOUD = 20;
}
11 changes: 11 additions & 0 deletions src/Enums/Person/Gender.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace MarcReichel\IGDBLaravel\Enums\Person;


class Gender
{
const MALE = 0;
const FEMALE = 1;
const OTHER = 2;
}
Loading

0 comments on commit 0474afb

Please sign in to comment.