Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Public Member Functions | |
__construct (public readonly ?string $replacement, public readonly ?string $since=null, public readonly ?string $reason=null, public readonly ?string $mdl=null, public readonly bool $final=false, public readonly bool $emit=true,) | |
A deprecated item. | |
core\attribute\deprecated::__construct | ( | public readonly ?string | $replacement, |
public readonly ?string | $since = null, | ||
public readonly ?string | $reason = null, | ||
public readonly ?string | $mdl = null, | ||
public readonly bool | $final = false, | ||
public readonly bool | $emit = true ) |
A deprecated item.
This attribute can be applied to any function, class, method, constant, property, enum, etc.
Note: The mere presence of the attribute does not do anything. It must be checked by some part of the code.
null | string | $replacement | Any replacement for the deprecated thing |
null | string | $since | When it was deprecated |
null | string | $reason | Why it was deprecated |
null | string | $mdl | Link to the Moodle Tracker issue for more information |
bool | $final | Whether this is a final deprecation |
bool | $emit | Whether to emit a deprecation warning |