PluginProbe ʕ •ᴥ•ʔ
Code Manager / 1.0.28
Code Manager v1.0.28
1.0.47 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.3 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 1.0.39 1.0.4 1.0.40 1.0.41 1.0.42 1.0.43 1.0.44 1.0.45 1.0.46 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9
code-manager / freemius / includes / entities / class-fs-user.php
code-manager / freemius / includes / entities Last commit date
class-fs-affiliate-terms.php 2 years ago class-fs-affiliate.php 2 years ago class-fs-billing.php 2 years ago class-fs-entity.php 2 years ago class-fs-payment.php 2 years ago class-fs-plugin-info.php 2 years ago class-fs-plugin-license.php 2 years ago class-fs-plugin-plan.php 2 years ago class-fs-plugin-tag.php 2 years ago class-fs-plugin.php 2 years ago class-fs-pricing.php 2 years ago class-fs-scope-entity.php 2 years ago class-fs-site.php 2 years ago class-fs-subscription.php 2 years ago class-fs-user.php 2 years ago index.php 2 years ago
class-fs-user.php
73 lines
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.0.3
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 class FS_User extends FS_Scope_Entity {
14
15 #region Properties
16
17 /**
18 * @var string
19 */
20 public $email;
21 /**
22 * @var string
23 */
24 public $first;
25 /**
26 * @var string
27 */
28 public $last;
29 /**
30 * @var bool
31 */
32 public $is_verified;
33 /**
34 * @var string|null
35 */
36 public $customer_id;
37 /**
38 * @var float
39 */
40 public $gross;
41
42 #endregion Properties
43
44 /**
45 * @param object|bool $user
46 */
47 function __construct( $user = false ) {
48 parent::__construct( $user );
49 }
50
51 function get_name() {
52 return trim( ucfirst( trim( is_string( $this->first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) );
53 }
54
55 function is_verified() {
56 return ( isset( $this->is_verified ) && true === $this->is_verified );
57 }
58
59 /**
60 * @author Leo Fajardo (@leorw)
61 * @since 2.4.2
62 *
63 * @return bool
64 */
65 function is_beta() {
66 // Return `false` since this is just for backward compatibility.
67 return false;
68 }
69
70 static function get_type() {
71 return 'user';
72 }
73 }