Skip to content

Commit bf10510

Browse files
authored
Merge pull request #99 from marcreichel/feat/#98-game-time-to-beat
Add GameTimeToBeat endpoint
2 parents 551bce0 + b29a38a commit bf10510

File tree

5 files changed

+47
-0
lines changed

5 files changed

+47
-0
lines changed

src/Enums/Webhook/Category.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ enum Category: int
5959
case LanguageSupportType = 1157224631;
6060
case Website = 698516688;
6161
case PopularityType = 1657974190;
62+
case GameTimeToBeat = 1144104885;
6263
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace MarcReichel\IGDBLaravel\Events;
6+
7+
use Illuminate\Http\Request;
8+
use MarcReichel\IGDBLaravel\Models\GameTimeToBeat;
9+
10+
class GameTimeToBeatCreated extends Event
11+
{
12+
public function __construct(public GameTimeToBeat $data, Request $request)
13+
{
14+
parent::__construct($request);
15+
}
16+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace MarcReichel\IGDBLaravel\Events;
6+
7+
class GameTimeToBeatDeleted extends GameTimeToBeatCreated
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace MarcReichel\IGDBLaravel\Events;
6+
7+
class GameTimeToBeatUpdated extends GameTimeToBeatCreated
8+
{
9+
}

src/Models/GameTimeToBeat.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace MarcReichel\IGDBLaravel\Models;
6+
7+
class GameTimeToBeat extends Model
8+
{
9+
protected array $casts = [
10+
'game' => Game::class,
11+
];
12+
}

0 commit comments

Comments
 (0)