djmaze 2020-09-23 10:28:05 +02:00
parent 302f2847b8
commit 3599c4c745

View file

@ -51,7 +51,7 @@ class Property
$this->TypeStr = $sTypeStr; $this->TypeStr = $sTypeStr;
} }
public function Clear() public function Clear() : void
{ {
$this->IdProperty = 0; $this->IdProperty = 0;
@ -91,7 +91,7 @@ class Property
return $this->IsEmail() || $this->IsName() || $this->IsWeb(); return $this->IsEmail() || $this->IsName() || $this->IsWeb();
} }
public function TypesAsArray() : bool public function TypesAsArray() : array
{ {
$aResult = array(); $aResult = array();
if (!empty($this->TypeStr)) if (!empty($this->TypeStr))
@ -108,7 +108,7 @@ class Property
return \array_map('strtoupper', $this->TypesAsArray()); return \array_map('strtoupper', $this->TypesAsArray());
} }
public function UpdateDependentValues() public function UpdateDependentValues() : void
{ {
$this->Value = \trim($this->Value); $this->Value = \trim($this->Value);
$this->ValueCustom = \trim($this->ValueCustom); $this->ValueCustom = \trim($this->ValueCustom);