N°3526 - Clean up pass on UIBlocks

- Move UIBlock::ENUM_BLOCK_FILES_TYPE_XXX to iUIBlock
- Add PHPDoc
- Remove Object return type hint on overloadable methods
- Add scalar return type hint
- Add type hint on parameters
This commit is contained in:
Molkobain
2021-11-14 21:22:04 +01:00
parent a9b30e160f
commit 3598da8808
45 changed files with 353 additions and 257 deletions

View File

@@ -42,11 +42,11 @@ class ButtonJS extends Button
/** @var string DEFAULT_TYPE */
public const DEFAULT_TYPE = self::ENUM_TYPE_BUTTON;
/** @var string $sType The HTML type of the button (eg. 'submit', 'button', ...) */
/** @var string The HTML type of the button (eg. 'submit', 'button', ...) */
protected $sType;
/** @var string $sName The HTML name of the button, used by forms */
/** @var string The HTML name of the button, used by forms */
protected $sName;
/** @var string $sValue The HTML value of the button, used by forms */
/** @var string The HTML value of the button, used by forms */
protected $sValue;
/**
@@ -81,7 +81,7 @@ class ButtonJS extends Button
/**
* @return string
*/
public function GetType()
public function GetType(): string
{
return $this->sType;
}
@@ -100,7 +100,7 @@ class ButtonJS extends Button
/**
* @return string
*/
public function GetName()
public function GetName(): string
{
return $this->sName;
}
@@ -119,7 +119,7 @@ class ButtonJS extends Button
/**
* @return string
*/
public function GetValue()
public function GetValue(): string
{
return $this->sValue;
}