aboutsummaryrefslogtreecommitdiffstats
path: root/includes/media/TrivialMediaHandlerState.php
blob: c5accb46a0e1228636db81391f399e86f07b57b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/**
 * Trivial implementation of MediaHandlerState.
 *
 * @since 1.37
 */
class TrivialMediaHandlerState implements MediaHandlerState {
	/** @var array */
	private $state = [];

	public function getHandlerState( string $key ) {
		return $this->state[$key] ?? null;
	}

	public function setHandlerState( string $key, $value ) {
		$this->state[$key] = $value;
	}
}