flash.moe/src/LanguageInfo.php
2022-02-06 01:36:05 +00:00

37 lines
672 B
PHP

<?php
namespace Makai;
use Index\AString;
use Index\WString;
class LanguageInfo {
private string $id;
private WString $name;
private ?int $colour;
public function __construct(
string $id,
WString $name,
?int $colour
) {
$this->id = $id;
$this->name = $name;
$this->colour = $colour;
}
public function getId(): string {
return $this->id;
}
public function getName(): WString {
return $this->name;
}
public function hasColour(): bool {
return $this->colour !== null;
}
public function getColour(): ?int {
return $this->colour;
}
}