- Correct getChoices() docblock to reflect translated label => enum backing value order instead of value => label - Re-indent Smart Links menu config to match actual array nesting - Align assignment operators in RefreshStatsCommand - Add missing newline at end of RefreshStatsCommand.php
25 lines
659 B
PHP
25 lines
659 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\MT3SMarketingProgramBundle\Validator\Constraints;
|
|
|
|
use Symfony\Component\Validator\Constraint;
|
|
|
|
/**
|
|
* Applies the task kind's rules to the dates:
|
|
* - a milestone's end date is enslaved to its start date (saved as equals);
|
|
* - a phase keeps its own dates, like any task.
|
|
*
|
|
* The start-before-end rule itself is EndDateAfterStartDate, shared by plans and tasks.
|
|
*/
|
|
class TaskDates extends Constraint
|
|
{
|
|
public const MILESTONE_END_ENSLAVED = 'mt3s.marketing_program.task.milestone.end_enslaved';
|
|
|
|
public function getTargets(): string|array
|
|
{
|
|
return self::CLASS_CONSTRAINT;
|
|
}
|
|
}
|