Some PHP improvements and little fixes

This commit is contained in:
Bizarrus committed 2023-11-04 04:00:10 +01:00
1 parent 558ef8a36e
commit c596aabda8
31 files changed
+182 -183

No files matched your search

+4 -4
View File
@@ -6,7 +6,7 @@
private $email = null;
private $url = null;
public function __construct($object) {
public function __construct(object $object) {
if(!empty($object->name)) {
$this->name = $object->name;
}
@@ -20,15 +20,15 @@
}
}
public function getName() {
public function getName() : string {
return $this->name;
}
public function getMail() {
public function getMail() : string {
return $this->email;
}
public function getWebsite() {
public function getWebsite() : string {
return $this->url;
}
}