Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core\attribute\deprecated Class Reference
Inheritance diagram for core\attribute\deprecated:
core\attribute\deprecated_with_reference

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.
 

Constructor & Destructor Documentation

◆ __construct()

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.

Parameters
null | string$replacementAny replacement for the deprecated thing
null | string$sinceWhen it was deprecated
null | string$reasonWhy it was deprecated
null | string$mdlLink to the Moodle Tracker issue for more information
bool$finalWhether this is a final deprecation
bool$emitWhether to emit a deprecation warning

The documentation for this class was generated from the following file: