mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-12 14:35:35 +00:00
35 lines
592 B
PHP
35 lines
592 B
PHP
|
<?php
|
||
|
|
||
|
declare( strict_types=1 );
|
||
|
|
||
|
namespace MediaWiki\Skins\Citizen\Components;
|
||
|
|
||
|
/**
|
||
|
* CitizenComponentKeyboardHint component
|
||
|
*/
|
||
|
class CitizenComponentKeyboardHint implements CitizenComponent {
|
||
|
/** @var string */
|
||
|
private $label;
|
||
|
/** @var string */
|
||
|
private $key;
|
||
|
|
||
|
/**
|
||
|
* @param string $label
|
||
|
* @param string $key
|
||
|
*/
|
||
|
public function __construct( string $label = '', string $key = '' ) {
|
||
|
$this->label = $label;
|
||
|
$this->key = $key;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
public function getTemplateData(): array {
|
||
|
return [
|
||
|
'label' => $this->label,
|
||
|
'key' => $this->key,
|
||
|
];
|
||
|
}
|
||
|
}
|