mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
18 lines
520 B
PHP
18 lines
520 B
PHP
<?
|
||
class Contributor{
|
||
public $Name;
|
||
public $UrlName;
|
||
public $SortName;
|
||
public $WikipediaUrl;
|
||
public $MarcRole;
|
||
public $FullName;
|
||
|
||
public function __construct(string $name, string $sortName = null, string $fullName = null, string $wikipediaUrl = null, string $marcRole = null){
|
||
$this->Name = str_replace('\'', '’', $name);
|
||
$this->UrlName = Formatter::MakeUrlSafe($name);
|
||
$this->SortName = $sortName;
|
||
$this->FullName = $fullName;
|
||
$this->WikipediaUrl = $wikipediaUrl;
|
||
$this->MarcRole = $marcRole;
|
||
}
|
||
}
|