MediaWiki  master
TrivialMediaHandlerState Class Reference

Trivial implementation of MediaHandlerState. More...

Inheritance diagram for TrivialMediaHandlerState:
Collaboration diagram for TrivialMediaHandlerState:

Public Member Functions

 getHandlerState (string $key)
 Get a value, or null if it does not exist. More...
 
 setHandlerState (string $key, $value)
 Set a value. More...
 

Private Attributes

array $state = []
 

Detailed Description

Trivial implementation of MediaHandlerState.

Since
1.37

Definition at line 8 of file TrivialMediaHandlerState.php.

Member Function Documentation

◆ getHandlerState()

TrivialMediaHandlerState::getHandlerState ( string  $key)

Get a value, or null if it does not exist.

Parameters
string$key
Returns
mixed|null

Implements MediaHandlerState.

Definition at line 12 of file TrivialMediaHandlerState.php.

◆ setHandlerState()

TrivialMediaHandlerState::setHandlerState ( string  $key,
  $value 
)

Set a value.

Parameters
string$key
mixed$value

Implements MediaHandlerState.

Definition at line 16 of file TrivialMediaHandlerState.php.

Member Data Documentation

◆ $state

array TrivialMediaHandlerState::$state = []
private

Definition at line 10 of file TrivialMediaHandlerState.php.


The documentation for this class was generated from the following file: