<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Lifecycle\Project;

use PpPhp\Core\Platform\Event\Lifecycle\LifecycleEvent;

final class ProjectSaved extends LifecycleEvent
{
    public function __construct(string $projectId = '', array $payload = [], array $metadata = [])
    {
        $payload = ['projectId' => $projectId] + $payload;
        parent::__construct('platform.project.saved', 'project', 'saved', 'project', $payload, $metadata);
    }
}
