Skip to content

Commit

Permalink
Merge pull request #99 from marcreichel/feat/#98-game-time-to-beat
Browse files Browse the repository at this point in the history
Add GameTimeToBeat endpoint
  • Loading branch information
marcreichel authored Feb 16, 2025
2 parents 551bce0 + b29a38a commit bf10510
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Enums/Webhook/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ enum Category: int
case LanguageSupportType = 1157224631;
case Website = 698516688;
case PopularityType = 1657974190;
case GameTimeToBeat = 1144104885;
}
16 changes: 16 additions & 0 deletions src/Events/GameTimeToBeatCreated.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace MarcReichel\IGDBLaravel\Events;

use Illuminate\Http\Request;
use MarcReichel\IGDBLaravel\Models\GameTimeToBeat;

class GameTimeToBeatCreated extends Event
{
public function __construct(public GameTimeToBeat $data, Request $request)
{
parent::__construct($request);
}
}
9 changes: 9 additions & 0 deletions src/Events/GameTimeToBeatDeleted.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

namespace MarcReichel\IGDBLaravel\Events;

class GameTimeToBeatDeleted extends GameTimeToBeatCreated
{
}
9 changes: 9 additions & 0 deletions src/Events/GameTimeToBeatUpdated.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

namespace MarcReichel\IGDBLaravel\Events;

class GameTimeToBeatUpdated extends GameTimeToBeatCreated
{
}
12 changes: 12 additions & 0 deletions src/Models/GameTimeToBeat.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace MarcReichel\IGDBLaravel\Models;

class GameTimeToBeat extends Model
{
protected array $casts = [
'game' => Game::class,
];
}

0 comments on commit bf10510

Please sign in to comment.