49 lines
911 B
PHP
Executable File
49 lines
911 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Mautic\IntegrationsBundle\Event;
|
|
|
|
use Mautic\IntegrationsBundle\Sync\SyncDataExchange\Internal\Object\ObjectInterface;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
class InternalObjectOwnerEvent extends Event
|
|
{
|
|
/**
|
|
* Format: [object_id => owner_id].
|
|
*/
|
|
private array $owners = [];
|
|
|
|
/**
|
|
* @param int[] $objectIds
|
|
*/
|
|
public function __construct(
|
|
private ObjectInterface $object,
|
|
private array $objectIds,
|
|
) {
|
|
}
|
|
|
|
public function getObject(): ObjectInterface
|
|
{
|
|
return $this->object;
|
|
}
|
|
|
|
/**
|
|
* @return int[]
|
|
*/
|
|
public function getObjectIds(): array
|
|
{
|
|
return $this->objectIds;
|
|
}
|
|
|
|
public function getOwners(): array
|
|
{
|
|
return $this->owners;
|
|
}
|
|
|
|
public function setOwners(array $owners): void
|
|
{
|
|
$this->owners = $owners;
|
|
}
|
|
}
|