Files
CloudOps/docker-compose/mautic-setup/mautic-backup-files/docroot/app/bundles/IntegrationsBundle/Event/InternalObjectCreateEvent.php

50 lines
1.0 KiB
PHP
Executable File

<?php
declare(strict_types=1);
namespace Mautic\IntegrationsBundle\Event;
use Mautic\IntegrationsBundle\Entity\ObjectMapping;
use Mautic\IntegrationsBundle\Sync\SyncDataExchange\Internal\Object\ObjectInterface;
use Symfony\Contracts\EventDispatcher\Event;
class InternalObjectCreateEvent extends Event
{
/**
* @var ObjectMapping[]
*/
private array $objectMappings = [];
public function __construct(
private ObjectInterface $object,
private array $createObjects,
) {
}
public function getObject(): ObjectInterface
{
return $this->object;
}
public function getCreateObjects(): array
{
return $this->createObjects;
}
/**
* @return ObjectMapping[]
*/
public function getObjectMappings(): array
{
return $this->objectMappings;
}
/**
* @param ObjectMapping[] $objectMappings
*/
public function setObjectMappings(array $objectMappings): void
{
$this->objectMappings = $objectMappings;
}
}