/** * Instance of db class * * @return static */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new static(); } return self::$instance; }