MediaWiki master
TrivialMediaHandlerState.php
Go to the documentation of this file.
1<?php
2
10 private $state = [];
11
13 public function getHandlerState( string $key ) {
14 return $this->state[$key] ?? null;
15 }
16
18 public function setHandlerState( string $key, $value ) {
19 $this->state[$key] = $value;
20 }
21}
Trivial implementation of MediaHandlerState.
setHandlerState(string $key, $value)
Set a value.
getHandlerState(string $key)
Get a value, or null if it does not exist.mixed|null
An interface to support process-local caching of handler data associated with a given file.