1 | <?php |
||
7 | class ModelCleanedEvent |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Holds the model class name. |
||
12 | * @var string |
||
13 | */ |
||
14 | public $modelName; |
||
15 | |||
16 | /** |
||
17 | * Holds the number of deleted records for the model. |
||
18 | * @var int |
||
19 | */ |
||
20 | public $numberOfDeletedRecords; |
||
21 | |||
22 | /** |
||
23 | * Create a new event instance. |
||
24 | * |
||
25 | * @param string $modelName |
||
26 | * @param int $numberOfDeletedRecords |
||
27 | * @return void |
||
|
|||
28 | */ |
||
29 | public function __construct(string $modelName, int $numberOfDeletedRecords) |
||
34 | } |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.