mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°3537 Code review
Thanks @Molkobain !
This commit is contained in:
@@ -24,7 +24,12 @@ class AbstractInput extends UIBlock
|
||||
return $this->sName;
|
||||
}
|
||||
|
||||
public function SetName(string $sName): AbstractInput
|
||||
/**
|
||||
* @param string $sName
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function SetName(string $sName)
|
||||
{
|
||||
$this->sName = $sName;
|
||||
|
||||
@@ -36,7 +41,12 @@ class AbstractInput extends UIBlock
|
||||
return $this->sValue;
|
||||
}
|
||||
|
||||
public function SetValue(?string $sValue): AbstractInput
|
||||
/**
|
||||
* @param string|null $sValue
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function SetValue(?string $sValue)
|
||||
{
|
||||
$this->sValue = $sValue;
|
||||
|
||||
|
||||
@@ -28,9 +28,15 @@ class Input extends AbstractInput
|
||||
return $this->sType;
|
||||
}
|
||||
|
||||
public function SetType(string $sType): Input
|
||||
/**
|
||||
* @param string $sType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function SetType(string $sType)
|
||||
{
|
||||
$this->sType = $sType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,12 @@ class TextArea extends AbstractInput
|
||||
return $this->iCols;
|
||||
}
|
||||
|
||||
public function SetCols(int $iCols): TextArea
|
||||
/**
|
||||
* @param int $iCols
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function SetCols(int $iCols)
|
||||
{
|
||||
$this->iCols = $iCols;
|
||||
|
||||
@@ -47,7 +52,12 @@ class TextArea extends AbstractInput
|
||||
return $this->iRows;
|
||||
}
|
||||
|
||||
public function SetRows(int $iRows): TextArea
|
||||
/**
|
||||
* @param int $iRows
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function SetRows(int $iRows)
|
||||
{
|
||||
$this->iRows = $iRows;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user