/** * Returns an instance of the database communication. * @return DBCommunication */ public static function getInstance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }