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