Some checks failed
CI / tests (push) Failing after 1m25s
Add phpunit.xml and tests/Pest.php for standalone test execution. Apply Laravel Pint formatting fixes across all source files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
462 B
PHP
24 lines
462 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Core\Mod\Commerce\Events;
|
|
|
|
use Core\Mod\Commerce\Models\Order;
|
|
use Core\Mod\Commerce\Models\Payment;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
/**
|
|
* Event fired when an order is successfully paid.
|
|
*/
|
|
class OrderPaid
|
|
{
|
|
use Dispatchable;
|
|
use SerializesModels;
|
|
|
|
public function __construct(
|
|
public Order $order,
|
|
public Payment $payment
|
|
) {}
|
|
}
|