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