public popEvent ( string $moment, string $action ) : Closure | null | ||
$moment | string | the "moment" of the event, can be either "before" or "after" |
$action | string | the "action" of the event, can be either "create", "update" or "delete" |
return | Closure | null | the popped event or null if no event was available. |