- 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
31 lines
635 B
PHP
31 lines
635 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace MauticPlugin\MT3SMarketingProgramBundle\Event;
|
|
|
|
use MauticPlugin\MT3SMarketingProgramBundle\Entity\Program;
|
|
use Symfony\Contracts\EventDispatcher\Event;
|
|
|
|
/**
|
|
* The payload of the plugin's mt3s.marketing_program.* events (see MT3SMarketingProgramEvents).
|
|
*/
|
|
final class ProgramEvent extends Event
|
|
{
|
|
public function __construct(
|
|
private readonly Program $program,
|
|
private readonly bool $isNew,
|
|
) {
|
|
}
|
|
|
|
public function getProgram(): Program
|
|
{
|
|
return $this->program;
|
|
}
|
|
|
|
public function isNew(): bool
|
|
{
|
|
return $this->isNew;
|
|
}
|
|
}
|