|
MediaWiki master
|
ArrayAccess with support for deprecating access to certain offsets. More...
Inherits ArrayAccess.

Public Member Functions | |
| __construct (array $initializer, array $deprecatedProperties, string $name, ?string $component=null) | |
| offsetExists ( $offset) | |
| offsetGet ( $offset) | |
| offsetSet ( $offset, $value) | |
| offsetUnset ( $offset) | |
ArrayAccess with support for deprecating access to certain offsets.
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 18 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 39 of file DeprecatablePropertyArray.php.
| MediaWiki\Debug\DeprecatablePropertyArray::offsetExists | ( | $offset | ) |
Definition at line 52 of file DeprecatablePropertyArray.php.
| MediaWiki\Debug\DeprecatablePropertyArray::offsetGet | ( | $offset | ) |
Definition at line 59 of file DeprecatablePropertyArray.php.
| MediaWiki\Debug\DeprecatablePropertyArray::offsetSet | ( | $offset, | |
| $value ) |
Definition at line 69 of file DeprecatablePropertyArray.php.
| MediaWiki\Debug\DeprecatablePropertyArray::offsetUnset | ( | $offset | ) |
Definition at line 78 of file DeprecatablePropertyArray.php.