CacheTime::mUsedOptions and ParserOutput::mAccessedOptions do exactly the same thing and has to be merged into a single property. This patch adds forward-compatibility and needs to be deployed at least one train before the patch which actually merges the properties. Change-Id: Ic9d71a443994e2545ebf2a826b9155c82961cb88
25 lines
665 B
PHP
25 lines
665 B
PHP
<?php
|
|
|
|
namespace Wikimedia\Reflection;
|
|
|
|
/**
|
|
* This class used to contain a $privateField, $protectedField and $publicField.
|
|
* This is used to test that unserialized instances still have the values of
|
|
* these ghost fields and the values can be accessed with GhostFieldAccessTrait.
|
|
* @package Wikimedia\Reflection
|
|
*/
|
|
class GhostFieldTestClass {
|
|
use GhostFieldAccessTrait;
|
|
|
|
public function getPrivateField() {
|
|
return $this->getGhostFieldValue( 'privateField' );
|
|
}
|
|
|
|
public function getProtectedField() {
|
|
return $this->getGhostFieldValue( 'protectedField' );
|
|
}
|
|
|
|
public function getPublicField() {
|
|
return $this->getGhostFieldValue( 'publicField' );
|
|
}
|
|
}
|