| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class SectionEntryCreated extends Event |
||
| 27 | { |
||
| 28 | const NAME = 'section.entry.created'; |
||
| 29 | |||
| 30 | /** @var CommonSectionInterface */ |
||
| 31 | protected $entry; |
||
| 32 | |||
| 33 | /** @var bool */ |
||
| 34 | protected $update; |
||
| 35 | |||
| 36 | public function __construct(CommonSectionInterface $entry, bool $update) |
||
| 37 | { |
||
| 38 | $this->entry = $entry; |
||
| 39 | $this->update = $update; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * The Section Entry Entity that was just persisted |
||
| 44 | */ |
||
| 45 | public function getEntry(): CommonSectionInterface |
||
| 46 | { |
||
| 47 | return $this->entry; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Was it a create or update action? |
||
| 52 | * |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | public function getUpdate(): bool |
||
| 58 | } |
||
| 59 | } |
||
| 60 |