mojang-api/src/Response/properties/TexturesProperty.php
ErickSkrauch 7211fbc190
Init
2019-04-01 16:04:08 +02:00

27 lines
557 B
PHP

<?php
declare(strict_types=1);
namespace Ely\Mojang\Response\Properties;
class TexturesProperty extends Property {
/**
* @var string|null
*/
private $signature;
public function __construct(array $prop) {
parent::__construct($prop);
$this->signature = $prop['signature'] ?? null;
}
public function getTextures(): TexturesPropertyValue {
return TexturesPropertyValue::createFromRawTextures($this->value);
}
public function getSignature(): ?string {
return $this->signature;
}
}