/** * @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 History of Apple 12-12-2025-888 casino online594985903517 Die beliebtesten Spiele im Online-Casino NetBet Blog Kostenlose Casino-Spiele für 2026 De beste online casino welkomstbonussen november 2026 Online Casino Slots in Deutschland spielen Liste mit SLOTS Neue spannende online Casinospiele Online Casino Top 10 Betrouwbaar online gokken in Nederland Seriöse Online Casinos 2026: Jetzt sicher spielen Unsere besten Online Spielotheken & Casinos 2026 iGaming.com Roulette Jetzt Online Spielen Und Große Auswahl Genießen Nachrichten aus Forschung und Wissenschaft Online Casino Spiele und Spielautomaten im Überblick Legale online casino’s in Nederland: alle Ksa-vergunningen Online Casino Slots in Deutschland spielen Liste mit SLOTS Online Casino Winz Het beste casino van Nederland Beste Casino Bonus Nederland november 2026 Live Casino Spelen Nederlandstalige Dealers 711.nl Spielbanken Bayern Online SPIEL-IN Ihre zertifizierte und seriöse Spielhalle seit 1954 Freispiele ohne Einzahlung » Aktuelle Freespins heute Expertenmeinung zu DE Online Casinos Nov, 2026 Meneer Casino Betrouwbare informatie over casinos Beste casino bonus van november 2026 vergelijken? Uitsluitend 24+ NOVOLINE Log-In Jackpot.de Das kostenlose Online Casino » Jetzt spielen! Casino Slots kostenlos spielen auf Jackpot.at Casino Spiele Liste Beste Casino Spiele 2026 im Online Casino JackpotPiraten Online Spielothek: 125 Freispiele ab 1 100% legal JackpotPiraten Online Spielothek: 125 Freispiele ab 1 100% legal Het beste Online Casino: ontdek onze Top 6 casino’s Bonus ohne Einzahlung für Spieler aus Deutschland 2026 Casino Bonus ohne Einzahlung 2026 im Vergleich November Die besten Online Casinos in Deutschland 2026 BILD.de check-dein-spiel.de: Start Topgokkasten.nl Gokkasten voor particulieren en exploitanten! Online Casino Spiele kostenlos GameTwist Casino Spielautomaten kaufen direkt beim Fachhändler Beste Online Casinos Österreich 2026: Top 14 Echtgeld Seiten NOVOLINE Log-In Spielautomaten gratis spielen Die besten Free-Slots online Spielautomaten kaufen direkt beim Fachhändler Casino Bonus ohne Einzahlung 2026 im Vergleich November Legale Online Casinos Deutschland 2026 ️ Nur mit GGL Lizenz Jackpot.de Das kostenlose Online Casino » Jetzt spielen! NOVOLINE Log-In Online Casino Echtgeld Top 8 Echtgeld Casinos in 2026 Casino Vergleich 2026 GGL-Anbieter im Test SPIEL-IN Ihre zertifizierte und seriöse Spielhalle seit 1954 Home