123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace Core;
- class Database{
-
- protected static $db = null;
-
- private function __construct(){
- }
-
- private function __clone(){
- }
-
- private function __wakeup(){
- }
-
- static function getInstance(){
- if(is_null(self::$db)){
- self::$db = new self();
- }
- return self::$db;
- }
-
- public function where($where){
- return $this;
- }
-
- public function order($order){
- return $this;
- }
-
- public function limit($limit){
- return $this;
- }
- }
|