mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 09:54:17 +02:00
44 lines
814 B
PHP
44 lines
814 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Demostf\API\Data;
|
|
|
|
class Upload {
|
|
/** @var string */
|
|
private $name;
|
|
/** @var string */
|
|
private $red;
|
|
/** @var string */
|
|
private $blue;
|
|
/** @var int */
|
|
private $uploaderId;
|
|
/** @var string */
|
|
private $hash;
|
|
|
|
public function __construct(string $name, string $red, string $blue, int $uploaderId, string $hash) {
|
|
$this->name = $name;
|
|
$this->red = $red;
|
|
$this->blue = $blue;
|
|
$this->uploaderId = $uploaderId;
|
|
$this->hash = $hash;
|
|
}
|
|
|
|
public function getName(): string {
|
|
return $this->name;
|
|
}
|
|
|
|
public function getRed(): string {
|
|
return $this->red;
|
|
}
|
|
|
|
public function getBlue(): string {
|
|
return $this->blue;
|
|
}
|
|
|
|
public function getUploaderId(): int {
|
|
return $this->uploaderId;
|
|
}
|
|
|
|
public function getHash(): string {
|
|
return $this->hash;
|
|
}
|
|
}
|