Files
Leantime/app/Core/WorkStructure/Events/MappingCreated.php

29 lines
768 B
PHP

<?php
namespace Leantime\Core\WorkStructure\Events;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
/**
* Fired when cross-structure mappings are defined.
*/
class MappingCreated
{
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* Create a new event instance.
*
* @param int $sourceStructureId The source structure ID
* @param int $targetStructureId The target structure ID
* @param string $mappingType The mapping type (generates, equivalent, informs)
*/
public function __construct(
public int $sourceStructureId,
public int $targetStructureId,
public string $mappingType
) {}
}