public static function getInstance() { if (null === self::$instance) { self::$instance = new self(); } return self::$instance; }
public function singleton() { if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); } return self::$instance; }