sLabel = $sLabel; $this->oInput = $oInput; if (is_null($bHasBr)) { $this->bHasBr = ($oInput instanceof TextArea); } else { $this->bHasBr = $bHasBr; } } public function GetInput(): AbstractInput { return $this->oInput; } public function SetInput(AbstractInput $oInput): InputWithLabel { $this->oInput = $oInput; return $this; } /** * @return string */ public function GetLabel(): string { return $this->sLabel; } /** * @param string $sLabel * * @return InputWithLabel */ public function SetLabel(string $sLabel): InputWithLabel { $this->sLabel = $sLabel; return $this; } public function HasBr(): bool { return $this->bHasBr; } }