for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Stu\Component\Event\Strategy;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Stu\Component\Anomaly\AnomalyHandlingInterface;
use Stu\Orm\Entity\EventInterface;
class AnomalyCreationEventStrategy implements EventStrategyInterface
{
public function __construct(
private AnomalyHandlingInterface $anomalyHandling,
) {
}
public function getEntitiesToLock(EventInterface $event): Collection
return new ArrayCollection();
public function processEvent(EventInterface $event): void
$this->anomalyHandling->createNewAnomalies();