Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Hook | n/a | 0 / 0 | n/a | 0 / 0 | 0 | n/a | 0 / 0 | |||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace BlueprintAU\Radiant\Attributes; | |
| 6 | ||
| 7 | /** | |
| 8 | * The write paths a trait hook can attach to. | |
| 9 | */ | |
| 10 | enum Hook: string | |
| 11 | { | |
| 12 | /** The INSERT path — fires before the insert payload is built. */ | |
| 13 | case Insert = 'insert'; | |
| 14 | ||
| 15 | /** The UPDATE path — fires before the update payload is built. */ | |
| 16 | case Update = 'update'; | |
| 17 | ||
| 18 | /** The claimable delete() path — a `?bool` return claims the delete. */ | |
| 19 | case Delete = 'delete'; | |
| 20 | ||
| 21 | /** The forceDelete() observer path — void observers only. */ | |
| 22 | case Destroy = 'destroy'; | |
| 23 | } |