for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Manage Form
*
* @category lib
* @package lib\Form
* @author Judicaël Paquet <[email protected]>
* @copyright Copyright (c) 2013-2014 PAQUET Judicaël FR Inc. (https://github.com/las93)
* @license https://github.com/las93/venus2/blob/master/LICENSE.md Tout droit réservé à PAQUET Judicaël
* @version Release: 1.0.0
* @filesource https://github.com/las93/venus2
* @link https://github.com/las93
* @since 1.0
*/
namespace Venus\lib\Form;
* This class manage the Form
class Label extends Common
{
* the label of element
* @access private
* @var string
private $_sLabel = null;
* the value of element
public function __construct(string $sLabel)
$this->setLabel($sLabel);
}
* get the Label
* @access public
* @return string
public function getLabel() : string
return $this->_sLabel;
* set the Label
* @param string $sLabel Label of input;
* @return \Venus\lib\Form\Input
public function setLabel(string $sLabel) : Input
$this->_sLabel = $sLabel;
return $this;
* get the <html>
public function fetch() : string
$sContent = '<label>'.$this->getLabel().'</label> ';
return $sContent;