mirror of
https://github.com/fruithost/Panel.git
synced 2026-10-25 04:27:18 +09:00
43 lines
777 B
PHP
43 lines
777 B
PHP
<?php
|
|
/**
|
|
* fruithost | OpenSource Hosting
|
|
*
|
|
* @author Adrian Preuß
|
|
* @version 1.0.0
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace fruithost\Modules;
|
|
|
|
class ModuleAuthor {
|
|
private ?string $name = null;
|
|
private ?string $email = null;
|
|
private ?string $url = null;
|
|
|
|
public function __construct(object $object) {
|
|
if(!empty($object->name)) {
|
|
$this->name = $object->name;
|
|
}
|
|
|
|
if(!empty($object->email)) {
|
|
$this->email = $object->email;
|
|
}
|
|
|
|
if(!empty($object->url)) {
|
|
$this->url = $object->url;
|
|
}
|
|
}
|
|
|
|
public function getName() : ?string {
|
|
return $this->name;
|
|
}
|
|
|
|
public function getMail() : ?string {
|
|
return $this->email;
|
|
}
|
|
|
|
public function getWebsite() : ?string {
|
|
return $this->url;
|
|
}
|
|
}
|
|
?>
|