BeforeInsert extends Payload
Notice emitted before a document is inserted.
Example:
$notice = new BeforeInsert
(
target : $this,
context : $init
);
$signal->emit( $notice ) ;
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a new BeforeInsert instance.
Methods
__construct()
Creates a new BeforeInsert instance.
public
__construct([mixed|null $data = null ][, object|null $target = null ][, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $data : mixed|null = null
-
The document(s) or value inserted.
- $target : object|null = null
-
The target of the notice.
- $context : array<string|int, mixed> = []
-
The context of the notice.