1 | <?php |
||
5 | class DatabaseMessage |
||
6 | { |
||
7 | /** |
||
8 | * The data that should be stored with the notification. |
||
9 | * |
||
10 | * @var array |
||
11 | */ |
||
12 | public $data = []; |
||
13 | |||
14 | /** |
||
15 | * Create a new database message. |
||
16 | * |
||
17 | * @param array $data |
||
18 | * @return void |
||
|
|||
19 | */ |
||
20 | 1 | public function __construct(array $data = []) |
|
24 | } |
||
25 |
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.