/** * @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 ); } } Finanza - Wealth Project
  • ทำความรู้จักกับโลกของมังงะญี่ปุ่น
    รวมเรื่องน่ารู้เกี่ยวกับมังงะที่สายอ่านต้องรู้ มังงะเป็นการ์ตูนญี่ปุ่นที่มีเอกลักษณ์ทั้งด้านการวาดและวิธีเล่าเรื่อง ชวนให้ผู้อ่านได้สัมผัสอารมณ์และจินตนาการอย่างใกล้ชิด ไม่ว่าคุณจะเพิ่งเริ่มต้นหรือเป็นแฟนตัวยง มังงะก็พร้อมเปิดโลกใหม่ให้คุณได้สนุกได้ทุกวัน ทำความรู้จักกับโลกของมังงะญี่ปุ่น ทำความรู้จักกับโลกของมังงะญี่ปุ่นที่จะพาคุณดำดิ่งสู่จักรวาลแห่งการเล่าเรื่องผ่านภาพวาดอันเป็นเอกลักษณ์ ตั้งแต่เส้นสายที่ comunicates อารมณ์ ไปจนถึงการออกแบบตัวละครที่มีมิติ มังงะญี่ปุ่น ครอบคลุมหลากหลายแนว ตั้งแต่อะคชัน แฟนตาซี...
  • Neon Twenty-One: Blackjack After Hours
    Neon Twenty-One: Blackjack After Hours Neon Twenty-One: Blackjack After Hours — The city is quieter...
  • สมัครเล่นบาคาร่า จุดเริ่มต้นความสนุกที่คุณกำหนดเอง
    สมัครเล่นบาคาร่า จุดเริ่มต้นความสนุกที่คุณกำหนดเอง บาคาร่าเป็นเกมไพ่ที่ได้รับความนิยมอย่างต่อเนื่อง เพราะกติกาเข้าใจง่ายและมีจังหวะการเดิมพันที่ชัดเจน การสมัครเล่นบาคาร่าจึงไม่ได้เป็นเพียงการเปิดบัญชีเพื่อเข้าเล่นเท่านั้น แต่เป็นจุดเริ่มต้นที่ผู้เล่นจะได้กำหนดความสนุกของตัวเอง ทั้งเรื่องงบประมาณ เวลาที่ใช้ และรูปแบบการเดิมพันที่適合กับไลฟ์สไตล์ของแต่ละคน เมื่อเริ่มต้นอย่างมีระบบ ผู้เล่นจะสามารถเพลิดเพลินกับเกมได้อย่างมั่นใจมากขึ้น สมัครเล่นบาคาร่า จุดเริ่มต้นความสนุกที่คุณกำหนดเอง หลายคนมองว่าการสมัครเล่นบาคาร่าเป็นขั้นตอนง่าย ๆ...
  • NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher
    NOVOLINE Deine Spielothek mit 1050+ Online Slots legal & sicher You don't need to install...
  • Freispiele ohne Einzahlung Neu Angebote November 2026
    Freispiele ohne Einzahlung Neu Angebote November 2026 Looking for a casino that offers the best...
  • Best Online Casino Payouts & Highest Paying Games 2026
    Best Online Casino Payouts & Highest Paying Games 2026 Even if you’ve never heard of...
  • Trusted Casino Gambling Guide for 30+ Years Casino.org
    Trusted Casino Gambling Guide for 30+ Years Casino.org We check the size and quality of...
  • UK Online Casinos Compared by Licence, Bonuses and Payments
    UK Online Casinos Compared by Licence, Bonuses and Payments In the UK casino scene, the...
  • Casino Bonuses The Best Online Casino Bonuses In 2026
    Casino Bonuses The Best Online Casino Bonuses In 2026 Here, you can see the most...
  • New Casino Sites November 2026 Latest Online Casino Launches with Fresh Bonuses
    New Casino Sites November 2026 Latest Online Casino Launches with Fresh Bonuses Read our comprehensive...