/** * @package Freemius for EDD Add-On * @copyright Copyright (c) 2015, Freemius, Inc. * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } class FS_Pricing extends FS_Entity { #region Properties /** * @var number */ public $plan_id; /** * @var int */ public $licenses; /** * @var null|float */ public $monthly_price; /** * @var null|float */ public $annual_price; /** * @var null|float */ public $lifetime_price; /** * @author Leo Fajardo (@leorw) * @since 2.3.1 * * @var string One of the following: `usd`, `gbp`, `eur`. */ public $currency; #endregion Properties /** * @param object|bool $pricing */ function __construct( $pricing = false ) { parent::__construct( $pricing ); } static function get_type() { return 'pricing'; } /** * @author Vova Feldman (@svovaf) * @since 1.1.8 * * @return bool */ function has_monthly() { return ( is_numeric( $this->monthly_price ) && $this->monthly_price > 0 ); } /** * @author Vova Feldman (@svovaf) * @since 1.1.8 * * @return bool */ function has_annual() { return ( is_numeric( $this->annual_price ) && $this->annual_price > 0 ); } /** * @author Vova Feldman (@svovaf) * @since 1.1.8 * * @return bool */ function has_lifetime() { return ( is_numeric( $this->lifetime_price ) && $this->lifetime_price > 0 ); } /** * Check if unlimited licenses pricing. * * @author Vova Feldman (@svovaf) * @since 1.1.8 * * @return bool */ function is_unlimited() { return is_null( $this->licenses ); } /** * Check if pricing has more than one billing cycle. * * @author Vova Feldman (@svovaf) * @since 1.1.8 * * @return bool */ function is_multi_cycle() { $cycles = 0; if ( $this->has_monthly() ) { $cycles ++; } if ( $this->has_annual() ) { $cycles ++; } if ( $this->has_lifetime() ) { $cycles ++; } return $cycles > 1; } /** * Get annual over monthly discount. * * @author Vova Feldman (@svovaf) * @since 1.1.8 * * @return int */ function annual_discount_percentage() { return floor( $this->annual_savings() / ( $this->monthly_price * 12 * ( $this->is_unlimited() ? 1 : $this->licenses ) ) * 100 ); } /** * Get annual over monthly savings. * * @author Vova Feldman (@svovaf) * @since 1.1.8 * * @return float */ function annual_savings() { return ( $this->monthly_price * 12 - $this->annual_price ) * ( $this->is_unlimited() ? 1 : $this->licenses ); } /** * @author Leo Fajardo (@leorw) * @since 2.3.1 * * @return bool */ function is_usd() { return ( 'usd' === $this->currency ); } } Wealth Project https://validator.w3.org/feed/docs/rss2.html Home Retraits_et_jeux_de_slots_sur_MILLIONZ_CASINO_avec_des_options_de_paiement Dati_di_registrazione_per_gratorama-login-45_yegifin392_workers_dev_e_gestione_d Regulaminy_oraz_hugo-casino-bonus-18_pages_dev_dla_graczy_i_bonusy Applikationer_för_chicken-road-sweden_se_med_fokus_på_olika_typer_av_spel Gioco_di_slot_su_https_vinci-spin-casino-27_pages_dev_con_i_nuovi_account Spelopties_voor_de_diverse_casino_spellen_op_zin-in-zondag_nl_en_bonussen Bonus_terms_and_mobile_app_details_for_https_ggbet-84_pages_dev_casino_users Registro_de_cuenta_y_Tonyspins_para_acceder_a_las_slots_de_este_casino Best Live Dealer Casinos 2026 Live Online Casino Sites Live Casino Online Play with Real Dealers Live Casino Live Blackjack, Baccarat, Roulette Live Casino Live Blackjack, Baccarat, Roulette NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher Online Casinos For Real Money Guide December 2026 Best Online Casino Bonus Codes & Promotions 2026 Top 10 Live Casino Online Play with Real Dealers Beste Online Casinos 2026 in Deutschland » Hier spielst du legal SlotMagie Deine online Spielothek in Deutschland Live Casino Online Play with Real Dealers Best Casino Sites August 2026 Find Casinos Online Best Casino Bonuses 2026 Compare Top Bonus Offers CasinoScores No. 1 Live stats & Live Stream Casino Game Shows Live Casino Live Blackjack, Baccarat, Roulette Best Casino Bonuses Ranked 2026 SlotMagie Deine online Spielothek in Deutschland Best Casino Bonuses Ranked 2026 CasinoScores No. 1 Live stats & Live Stream Casino Game Shows Live Casino Online Play with Real Dealers Best US Online Casinos 2026 10+ Expert-Rated Sites Online casino Wikipedia Best Online Casino Bonuses 2026 Top Signup Offers Best Casino Bonuses Ranked 2026 Best Casino Bonuses 2026 Compare Top Bonus Offers HIT RADIO FFH Radio für Hessen Best Casino Online 2026 Top 10 Casino List & Comparison Live Casino Online Play with Real Dealers Best Online Casino Bonus Codes in December 2026 Best Online Casinos for US Players 2026 Amusnet Live Casino NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher Live Casino Online Play with Real Dealers Live Casino Online Play with Real Dealers CasinoScores No. 1 Live stats & Live Stream Casino Game Shows Casino.com: Your Trusted Guide for Online Casinos & Bonuses Live Casino Live Blackjack, Baccarat, Roulette Best Live Dealer Casinos 2026 Live Online Casino Sites Best Online Casino Bonus Codes in December 2026 Sportwetten Deutschland: Legale Anbieter & Boni Expert Guide to Most Trusted Online Casinos in 2026