/** * It creates a new CityStats object class if it has been created * before, it return the previous object * * @access public * @since 2.4 * @return CategoryStats */ public static function newInstance() { if (!self::$instance instanceof self) { self::$instance = new self(); } return self::$instance; }