1 | <?php |
||
20 | class GdprEvent extends Event |
||
21 | { |
||
22 | const EVENT_BEFORE_DELETE = 'beforeDelete'; |
||
23 | const EVENT_AFTER_DELETE = 'afterDelete'; |
||
24 | /** |
||
25 | * @var bool whether logic must continue after this event. Valid only for beforeDelete |
||
26 | */ |
||
27 | public $isValid = true; |
||
28 | |||
29 | protected $user; |
||
30 | |||
31 | 1 | public function __construct(User $user, array $config = []) |
|
36 | |||
37 | public function getUser() |
||
41 | } |
||
42 |