mautic / app /bundles /CoreBundle /Event /EntityValidateEvent.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
raw
history blame contribute delete
699 Bytes
<?php
declare(strict_types=1);
namespace Mautic\CoreBundle\Event;
use Mautic\CoreBundle\Validator\EntityEvent;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Contracts\EventDispatcher\Event;
class EntityValidateEvent extends Event
{
public function __construct(private object $entity, private EntityEvent $constraint, private ExecutionContextInterface $context)
{
}
public function getEntity(): object
{
return $this->entity;
}
public function getConstraint(): EntityEvent
{
return $this->constraint;
}
public function getContext(): ExecutionContextInterface
{
return $this->context;
}
}