first delivery

This commit is contained in:
Alexandre Gain committed 2026-11-07 19:31:49 +01:00
1 parent 793fbc0c91
commit f6684f3b2e
65 files changed
+5828

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace MauticPlugin\PlanBundle\Validator\Constraints;
use Symfony\Component\Validator\Constraint;
/**
* Class constraint on Task: the parent task must be in the same plan, and must not be the task itself
* or one of its sub-tasks (which would create a loop).
*/
class ValidTaskParent extends Constraint
{
public string $otherPlanMessage = 'mautic.plan.task.parent.other_plan';
public string $loopMessage = 'mautic.plan.task.parent.loop';
public function getTargets(): string
{
return self::CLASS_CONSTRAINT;
}
}