/** * Return the only instance of CRUDService. * @return CRUDService INSTANCE */ public static function getInstance() { if (self::$INSTANCE == null) { self::$INSTANCE = new CRUDService(); self::connect(); } return self::$INSTANCE; }