first delivery
This commit is contained in:
1 parent
793fbc0c91
commit
f6684f3b2e
65 files changed
+5828
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MauticPlugin\PlanBundle\Validator\Constraints;
|
||||
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
|
||||
/**
|
||||
* Class constraint for any DateRangeInterface (Plan, Task): when both dates are set, endDate must be
|
||||
* on or after startDate.
|
||||
*/
|
||||
class EndDateAfterStartDate extends Constraint
|
||||
{
|
||||
public string $message = 'mautic.plan.end_date.before_start_date';
|
||||
|
||||
public function getTargets(): string
|
||||
{
|
||||
return self::CLASS_CONSTRAINT;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user