* @package generis */ abstract class common_configuration_Component { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- /** * Short description of attribute optional * * @access private * @var boolean */ private $optional = false; /** * Short description of attribute name * * @access private * @var string */ private $name = ''; // --- OPERATIONS --- /** * Short description of method __construct * * @access public * @author Jerome Bogaerts, * @param string name * @param boolean optional * @return mixed */ public function __construct($name = 'unknown', $optional = false) { $this->setName($name); $this->setOptional($optional); } /** * Short description of method check * * @abstract * @access public * @author Jerome Bogaerts, * @return common_configuration_Report */ abstract public function check(); /** * Short description of method isOptional * * @access public * @author Jerome Bogaerts, * @return boolean */ public function isOptional() { $returnValue = (bool) false; $returnValue = $this->optional; return (bool) $returnValue; } /** * Short description of method setOptional * * @access public * @author Jerome Bogaerts, * @param boolean optional * @return void */ public function setOptional($optional) { $this->optional = $optional; } /** * Short description of method getName * * @access public * @author Jerome Bogaerts, * @return string */ public function getName() { $returnValue = (string) ''; $returnValue = $this->name; return (string) $returnValue; } /** * Short description of method setName * * @access public * @author Jerome Bogaerts, * @param string name * @return void */ public function setName($name) { $this->name = $name; } } /* end of abstract class common_configuration_Component */