| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class SectionEntryDeleted extends Event |
||
| 27 | { |
||
| 28 | const NAME = 'section.entry.deleted'; |
||
| 29 | |||
| 30 | /** @var CommonSectionInterface */ |
||
| 31 | protected $entry; |
||
| 32 | |||
| 33 | /** @var bool */ |
||
| 34 | protected $success; |
||
| 35 | |||
| 36 | public function __construct(CommonSectionInterface $entry, bool $success) |
||
| 37 | { |
||
| 38 | $this->entry = $entry; |
||
| 39 | $this->success = $success; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * This entry was deleted. |
||
| 44 | * |
||
| 45 | * @return CommonSectionInterface |
||
| 46 | */ |
||
| 47 | public function getEntry(): CommonSectionInterface |
||
| 48 | { |
||
| 49 | return $this->entry; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Has it been successful? |
||
| 54 | * |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | public function getSuccess(): bool |
||
| 60 | } |
||
| 61 | } |
||
| 62 |