PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.86
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.86
51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 All 40 releases
king-addons / freemius / includes / entities / class-fs-affiliate.php

class-fs-affiliate.php in King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder 51.1.86, at freemius/includes/entities/class-fs-affiliate.php

84 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 * @since 1.2.3
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 class FS_Affiliate extends FS_Scope_Entity {
14
15 #region Properties
16
17 /**
18 * @var string
19 */
20 public $paypal_email;
21 /**
22 * @var number
23 */
24 public $custom_affiliate_terms_id;
25 /**
26 * @var boolean
27 */
28 public $is_using_custom_terms;
29 /**
30 * @var string status Enum: `pending`, `rejected`, `suspended`, or `active`. Defaults to `pending`.
31 */
32 public $status;
33 /**
34 * @var string
35 */
36 public $domain;
37
38 #endregion Properties
39
40 /**
41 * @author Leo Fajardo
42 *
43 * @return bool
44 */
45 function is_active() {
46 return ( 'active' === $this->status );
47 }
48
49 /**
50 * @author Leo Fajardo
51 *
52 * @return bool
53 */
54 function is_pending() {
55 return ( 'pending' === $this->status );
56 }
57
58 /**
59 * @author Leo Fajardo
60 *
61 * @return bool
62 */
63 function is_suspended() {
64 return ( 'suspended' === $this->status );
65 }
66
67 /**
68 * @author Leo Fajardo
69 *
70 * @return bool
71 */
72 function is_rejected() {
73 return ( 'rejected' === $this->status );
74 }
75
76 /**
77 * @author Leo Fajardo
78 *
79 * @return bool
80 */
81 function is_blocked() {
82 return ( 'blocked' === $this->status );
83 }
84 }