25 lines
574 B
PHP
25 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;
|
||
|
}
|
||
|
}
|