mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
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:
@@ -61,7 +61,7 @@ class Input extends AbstractInput
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function IsChecked()
|
||||
public function IsChecked(): bool
|
||||
{
|
||||
return $this->bIsChecked;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ class Input extends AbstractInput
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function IsDisabled()
|
||||
public function IsDisabled(): bool
|
||||
{
|
||||
return $this->bIsDisabled;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ class Input extends AbstractInput
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function IsReadonly()
|
||||
public function IsReadonly(): bool
|
||||
{
|
||||
return $this->bIsReadonly;
|
||||
}
|
||||
@@ -107,7 +107,7 @@ class Input extends AbstractInput
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function GetLabel()
|
||||
public function GetLabel(): ?string
|
||||
{
|
||||
return $this->sLabel;
|
||||
}
|
||||
@@ -124,7 +124,7 @@ class Input extends AbstractInput
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function HasLabel()
|
||||
public function HasLabel(): bool
|
||||
{
|
||||
return !is_null($this->sLabel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user