mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
10 lines
263 B
PHP
10 lines
263 B
PHP
<?
|
|
class Collection{
|
|
public $Name;
|
|
public $Url;
|
|
|
|
public function __construct(string $name){
|
|
$this->Name = $name;
|
|
$this->Url = '/collections/' . strtolower(str_replace(' ', '-', Formatter::ToPlainText(Formatter::RemoveDiacritics($this->Name)))) . '/';
|
|
}
|
|
}
|