* @package generis */ abstract class common_configuration_BoundableComponent extends common_configuration_Component { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- /** * Short description of attribute min * * @access private * @var string */ private $min = ''; /** * Short description of attribute max * * @access private * @var string */ private $max = ''; // --- OPERATIONS --- /** * Short description of method __construct * * @access public * @author Jerome Bogaerts, * @param string min * @param string max * @param string name * @param boolean optional * @return mixed */ public function __construct($min, $max, $name = 'unknown', $optional = false) { parent::__construct($name, $optional); $this->setMin($min); $this->setMax($max); } /** * Short description of method setMin * * @access public * @author Jerome Bogaerts, * @param string min * @return void */ public function setMin($min) { $this->min = $min; } /** * Short description of method getMin * * @access public * @author Jerome Bogaerts, * @return string */ public function getMin() { $returnValue = (string) ''; return $this->min; return (string) $returnValue; } /** * Short description of method setMax * * @access public * @author Jerome Bogaerts, * @param string max * @return void */ public function setMax($max) { // Support .x notation. if (!empty($max)) { $this->max = preg_replace('/x/u', '99999', $max); } else { $this->max = null; } } /** * Short description of method getMax * * @access public * @author Jerome Bogaerts, * @return string */ public function getMax() { $returnValue = (string) ''; return $this->max; return (string) $returnValue; } /** * Short description of method getValue * * @abstract * @access public * @author Jerome Bogaerts, * @return string */ abstract public function getValue(); } /* end of abstract class common_configuration_BoundableComponent */