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