Skip to content

Commit

Permalink
internal(modifier): associate modifier caster
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Aug 16, 2023
1 parent b217866 commit c9a21e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Entities/Modifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Entities;

use App\Casts\ModifierKind;
use App\Casts\ModifierAction;

class Modifier extends BaseResourceEntity
{
Expand All @@ -14,10 +15,12 @@ class Modifier extends BaseResourceEntity
"credit_account_id" => "integer",
"name" => "string",
"description" => "?string",
"action" => "modifier_action",
"kind" => "modifier_kind"
];

protected $castHandlers = [
"modifier_action" => ModifierAction::class,
"modifier_kind" => ModifierKind::class,
];
}

0 comments on commit c9a21e5

Please sign in to comment.