Spaces:
No application file
No application file
| 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; | |
| } | |
| } | |