1 | <?php |
||
8 | abstract class AbstractBehaviour implements Behaviour |
||
9 | { |
||
10 | /** |
||
11 | * @inheritdoc |
||
12 | */ |
||
13 | public function beforeInsert(array $data): array |
||
16 | |||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | 2 | public function afterInsert(ActiveRow $record, array $data): void |
|
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | public function beforeUpdate(ActiveRow $record, array $data): array |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | 2 | public function afterUpdate(ActiveRow $oldRecord, ActiveRow $newRecord, array $data): void |
|
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | 2 | public function beforeDelete(ActiveRow $record, bool $soft): void |
|
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | 2 | public function afterDelete(ActiveRow $record, bool $soft): void |
|
51 | } |
||
52 |