mediawiki-extensions-Confir.../includes/store/CaptchaHashStore.php
Umherirrender 8a3c51b1db Move classes to own files
Makes MediaWiki.Files.OneClassPerFile.MultipleFound pass

Change-Id: I88b5112d84d8983e67be1bca9f4039486bcefc6f
2017-12-16 13:32:46 +01:00

29 lines
479 B
PHP

<?php
class CaptchaHashStore extends CaptchaStore {
protected $data = [];
public function store( $index, $info ) {
$this->data[$index] = $info;
}
public function retrieve( $index ) {
if ( array_key_exists( $index, $this->data ) ) {
return $this->data[$index];
}
return false;
}
public function clear( $index ) {
unset( $this->data[$index] );
}
public function cookiesNeeded() {
return false;
}
public function clearAll() {
$this->data = [];
}
}