| 1 | <?php |
||
| 31 | abstract class Common |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * the name of element |
||
| 35 | * |
||
| 36 | * @access private |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | private $_sName = null; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * constraints on the element |
||
| 43 | * |
||
| 44 | * @access private |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | private $_aConstraints = null; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * get the name |
||
| 51 | * |
||
| 52 | * @access public |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getName() : string |
||
| 59 | |||
| 60 | /** |
||
| 61 | * get the name |
||
| 62 | * |
||
| 63 | * @access public |
||
| 64 | * @param string $sName name; |
||
| 65 | * @return object |
||
| 66 | */ |
||
| 67 | public function setName(string $sName) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * get the <html> |
||
| 75 | * |
||
| 76 | * @access public |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | abstract public function fetch() : string; |
||
| 80 | |||
| 81 | /** |
||
| 82 | * set the constraint |
||
| 83 | * |
||
| 84 | * @access public |
||
| 85 | * @param object $oConstraint constraint; |
||
| 86 | * @return object |
||
| 87 | */ |
||
| 88 | public function setConstraint($oConstraint) |
||
| 93 | |||
| 94 | /** |
||
| 95 | * get the constraint |
||
| 96 | * |
||
| 97 | * @access public |
||
| 98 | * @return array |
||
| 99 | */ |
||
| 100 | public function getConstraint() : array |
||
| 104 | } |
||
| 105 |