Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: