flash.moe/lib/fmprojectlink.php
2020-07-30 00:55:37 +00:00

24 lines
574 B
PHP

<?php
class FmProjectLink {
private $className;
private $text;
private $url;
public function getClass(): string {
return $this->className;
}
public function getText(): string {
return $this->text;
}
public function getUrl(): string {
return $this->url;
}
public static function create(string $class, string $text, string $url): self {
$link = new static;
$link->className = $class;
$this->text = $text;
$this->url = $url;
return $link;
}
}