| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class ActiveUserPostDeletedEvent extends UserEntityEvent |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Has the user been fully deleted (true) or converted to ghost (false) |
||
| 26 | * In general, listening extensions should respond the same in both cases - removing all private user data. |
||
| 27 | * When converted to ghost, it is acceptable to retain the UID as the source of data if needed, as the UID |
||
| 28 | * will continue to remain valid and reference a UserEntity record. |
||
| 29 | * @var bool |
||
| 30 | */ |
||
| 31 | private $fullDeletion; |
||
| 32 | |||
| 33 | public function __construct(?UserEntity $user, bool $fullDeletion = false) |
||
| 37 | } |
||
| 38 | |||
| 39 | public function isFullDeletion(): bool |
||
| 44 |