MediaWiki REL1_39
|
ArrayAccess implementation that supports deprecating access to certain properties. More...
Public Member Functions | |
__construct (array $initializer, array $deprecatedProperties, string $name, string $component=null) | |
offsetExists ( $offset) | |
offsetGet ( $offset) | |
offsetSet ( $offset, $value) | |
offsetUnset ( $offset) | |
ArrayAccess implementation that supports deprecating access to certain properties.
It behaves mostly as a normal array, however in order to avoid instantiating deprecated properties by default, a callable initializer can be set to the property. It will be executed upon 'get'.
Definition at line 16 of file DeprecatablePropertyArray.php.
MediaWiki\Debug\DeprecatablePropertyArray::__construct | ( | array | $initializer, |
array | $deprecatedProperties, | ||
string | $name, | ||
string | $component = null ) |
array | $initializer | Initial value of the array. |
array | $deprecatedProperties | Map of deprecated property names to versions. |
string | $name | Descriptive identifier for the array |
string | null | $component | Component to which array belongs. If not provided, assumed to be MW Core |
Definition at line 37 of file DeprecatablePropertyArray.php.
MediaWiki\Debug\DeprecatablePropertyArray::offsetExists | ( | $offset | ) |
Definition at line 49 of file DeprecatablePropertyArray.php.
MediaWiki\Debug\DeprecatablePropertyArray::offsetGet | ( | $offset | ) |
Definition at line 55 of file DeprecatablePropertyArray.php.
MediaWiki\Debug\DeprecatablePropertyArray::offsetSet | ( | $offset, | |
$value ) |
Definition at line 64 of file DeprecatablePropertyArray.php.
MediaWiki\Debug\DeprecatablePropertyArray::offsetUnset | ( | $offset | ) |
Definition at line 72 of file DeprecatablePropertyArray.php.