/** * @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 Apuestas_en_el_sitio_https_apuestas-ufc_com_es_con_diversas_cuotas_de_deporte Games_and_mobile_app_features_for_https_scotresults_co_uk_online_casino Parhaat nettikasinot 2026 Testatut ja luotettavat pelipaikat Beste casino på nett 2026 Topp 20 Suomalaiset nettikasinot 2026 Vertaa parhaat kasinot Spilleautomater er mest populært hos online casinoer Bäst Casino med snabba uttag 2026 » 80+ nätcasinon Home Accesso_e_funzioni_per_https_vinci-spin-109_onrender_com_nel_sistema_di_slot Best Live Dealer Casinos 2026 Live Online Casino Sites HIT RADIO FFH Radio für Hessen Best Casino Bonus Offers & Bonus Codes Online 2026 Lucky Pixels: The Online Casino Universe Brukerkontoens_tilgang_til_https_hugo-casino-login-no_pages_dev_via_appen Best Casino Bonuses Ranked 2026 Best Online Casino Bonus Codes in December 2026 Slots, Table Games, Poker & Entertainment Live! Casino Virginia® NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher HIT RADIO FFH Radio für Hessen Online Casino Sign Up Bonus: Best Welcome Offers for December 2026 CasinoScores No. 1 Live stats & Live Stream Casino Game Shows Online Casino Sign Up Bonus: Best Welcome Offers for December 2026 Slots, Table Games, Poker & Entertainment Live! Casino Virginia® Beste Online Casinos 2026 in Deutschland » Hier spielst du legal Registrering_og_bruk_av_hugo-casino-193_pages_dev_for_tilgang_til_ulike_spill Amusnet Online Casino Expert Guide to Most Trusted Online Casinos in 2026 CasinoScores No. 1 Live stats & Live Stream Casino Game Shows Play 23,240+ Free Online Casino Games No Download Slots, Table Games, Poker & Entertainment Live! Casino Virginia® Spielautomaten_bei_gold-bet-casino-17_onrender_com_für_die_tägliche_Nutzung Amusnet Online Casino Beste Online Casinos 2026 in Deutschland » Hier spielst du legal Live Casino Online Play with Real Dealers Slots, Table Games, Poker & Entertainment Live! Casino Virginia® Expert Guide to Most Trusted Online Casinos in 2026 CasinoScores No. 1 Live stats & Live Stream Casino Game Shows Beste Online Casinos 2026 in Deutschland » Hier spielst du legal Accountgegevens_voor_het_gebruik_van_the-lucky-gems_nl_bij_dit_casino Jogos_de_apostas_com_https_thechickenroads-pt_pt_e_novos_multiplicadores Best Online Casinos 2026 Top 10 Highest Rated Casinos Inloggen_op_het_Holy_luck_casino_voor_toegang_tot_de_nieuwe_slots NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher Live Casino Online Play with Real Dealers Slots, Table Games, Poker & Entertainment Live! Casino Virginia® Inzet_en_diverse_casino_opties_bij_uspins-casino_nl_voor_elke_speler Online Casino Sign Up Bonus: Best Welcome Offers for December 2026 Bonus_offers_for_playing_at_fun_bet_Casino_with_various_casino_slots Withdrawal_methods_used_for_https_gsscllc_com_and_casino_software