| 1 | <?php |
||
| 14 | class Constrant |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * constrants do banco de dados |
||
| 18 | * -foreingkey |
||
| 19 | * -primarykey |
||
| 20 | * -unique |
||
| 21 | * |
||
| 22 | * @author Pedro Alarcao <[email protected]> |
||
| 23 | */ |
||
| 24 | final private function __construct () |
||
| 27 | |||
| 28 | public static function getInstance () |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | protected $constrant; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var string |
||
| 40 | */ |
||
| 41 | protected $schema; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | protected $table; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | protected $column; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param $array |
||
| 55 | * |
||
| 56 | * @return Constrant |
||
| 57 | */ |
||
| 58 | public function populate ( $array ) |
||
| 71 | |||
| 72 | public function getDatabase (){ } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function getNameConstrant () |
||
| 81 | |||
| 82 | public function hasSchema () |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | public function getSchema () |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return string |
||
| 97 | */ |
||
| 98 | public function getTable () |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @return string |
||
| 105 | */ |
||
| 106 | public function getColumn () |
||
| 110 | |||
| 111 | } |
||
| 112 |