Newer
Older
gnexus-auth-client-php / src / DTO / WebhookEvent.php
@Eugene Sukhodolskiy Eugene Sukhodolskiy 12 hours ago 652 bytes Initial auth client package scaffold
<?php

declare(strict_types=1);

namespace GNexus\GAuth\DTO;

final readonly class WebhookEvent
{
    /**
     * @param array<string, mixed> $targetIdentifiers
     * @param array<string, mixed> $actorIdentifiers
     * @param array<string, mixed> $metadata
     * @param array<string, mixed> $rawPayload
     */
    public function __construct(
        public ?string $eventId,
        public string $eventType,
        public ?\DateTimeImmutable $occurredAt = null,
        public array $targetIdentifiers = [],
        public array $actorIdentifiers = [],
        public array $metadata = [],
        public array $rawPayload = [],
    ) {
    }
}