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