/** * @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 Rejestracja_konta_oraz_salon_gier_z_wieloma_grami_do_obstawiania Betmatch_és_kaszinójátékok_mobilalkalmazása_a_szerencsejátékosoknak Withdrawal_methods_and_aboutowneroofing_ca_casino_account_management Account_details_for_gta_6_usage_in_the_mobile_app_for_all_players Registration_details_for_innercleanse_co_uk_to_access_casino_games_and_bets Metodi_di_deposito_su_verde-casino-review_it_con_diverse_opzioni_di_gioco Aplicación_móvil_de_ReolutCasino_con_acceso_a_las_apuestas_de_casino **Digital Dice & Virtual Vices: The Online Gambling Frontier** Juegos_disponibles_en_https_diversaonline_es_para_realizar_apuestas Juegos_de_slots_disponibles_en_reolut_casino_españa_para_jugadores_online Payment_methods_used_for_fullyearthedelectrical_co_uk_casino_games_and_slots Dépôts_rapides_et_retraits_faciles_avec_chickenroads_com_ci_pour_vos_jeux Registrierung_bei_https_wildrobins_co_at_und_einfache_Wege_zu_den_besten_Spielen สมัครเล่นบาคาร่า จุดเริ่มต้นความสนุกที่คุณกำหนดเอง NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher Freispiele ohne Einzahlung Neu Angebote November 2026 Best Online Casino Payouts & Highest Paying Games 2026 Trusted Casino Gambling Guide for 30+ Years Casino.org UK Online Casinos Compared by Licence, Bonuses and Payments Casino Bonuses The Best Online Casino Bonuses In 2026 New Casino Sites November 2026 Latest Online Casino Launches with Fresh Bonuses Casino Trends in 2025: What Can We Expect from the New Online Casinos UK 2026 Top 60 Casino Sites Tested New Casino Sites UK 2026: Latest New Online Casinos Tested Best Online Casinos for Real Money USA 2026 Expert Reviews Latest Casino News in the USA for 2026 Gambling Insights NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher Best Online Casinos UK: Top UKGC Casino Sites November 2026 UK Licensed Online Casinos List of UKGC Casinos 2026 Top Rated Online Casino Sites: A Comprehensive Guide Tourismusverband Casino Trends and Technologies: An Intersection of Luxury and Innovation Safe Online Casinos to Play in the US 2026 Exciting news from the world of casinos Play Slot Games Online Best Online Slots Online Slot Games Play Slots Online Foxplay Foxwoods Best Free Spins & New Casino Offers UK November 2026 Casino Bonuses The Best Online Casino Bonuses In 2026 Best Online Roulette Casino 2026 Play 250+ Free Roulette Games Best Online Casinos for Real Money 2026 Tested Picks Free online vegas slots 777 Online slot machines Slot.com Best Casino Sites Germany Licensed Online Casinos for 2026 Top Gambling Websites Ranking Blackjack Guide Strategy, Rules & Best Online Casinos Roulette Definition, Meaning & Synonyms NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher Online Casino Market Size, Share, Growth Report 2025-2030 CasinoGuide Trusted UK Online Casino Guide November 2026 Home ทำความรู้จักกับโลกของมังงะญี่ปุ่น Neon Twenty-One: Blackjack After Hours