mautic / app /bundles /FormBundle /Event /ObjectCollectEvent.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
raw
history blame contribute delete
602 Bytes
<?php
declare(strict_types=1);
namespace Mautic\FormBundle\Event;
use Mautic\CoreBundle\Event\CommonEvent;
use Mautic\FormBundle\Collection\ObjectCollection;
use Mautic\FormBundle\Crate\ObjectCrate;
final class ObjectCollectEvent extends CommonEvent
{
private ObjectCollection $objects;
public function __construct()
{
$this->objects = new ObjectCollection();
}
public function appendObject(ObjectCrate $object): void
{
$this->objects->append($object);
}
public function getObjects(): ObjectCollection
{
return $this->objects;
}
}