PluginProbe
ReviewX – Multi-Criteria Reviews for WooCommerce with Google Reviews & Schema / trunk
ReviewX – Multi-Criteria Reviews for WooCommerce with Google Reviews & Schema vtrunk
2.5.1 2.5.0 2.4.1 2.4.0 2.3.11 2.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 All 143 releases
reviewx / app / Utilities / Auth / WpUserManager.php

WpUserManager.php in ReviewX – Multi-Criteria Reviews for WooCommerce with Google Reviews & Schema trunk, at app/Utilities/Auth/WpUserManager.php

32 lines 725 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ReviewX\Utilities\Auth;
4
5 \defined("ABSPATH") || exit;
6 class WpUserManager
7 {
8 protected bool $isUserLoggedIn = \false;
9 protected bool $userCan = \false;
10 public function __construct(bool $isLoggedIn = \false, bool $userCan = \false)
11 {
12 $this->isUserLoggedIn = $isLoggedIn;
13 $this->userCan = $userCan;
14 }
15 public function setLoggedInStatus(bool $isLoggedIn)
16 {
17 $this->isUserLoggedIn = $isLoggedIn;
18 }
19 public function setAbility(bool $userCan)
20 {
21 $this->userCan = $userCan;
22 }
23 public function isLoggedIn() : bool
24 {
25 return $this->isUserLoggedIn;
26 }
27 public function can() : bool
28 {
29 return $this->userCan;
30 }
31 }
32