Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-webapi
Model
Authorization
GuestUserContext.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Webapi\Model\Authorization
;
8
9
use
Magento\Authorization\Model\UserContextInterface
;
10
14
class
GuestUserContext
implements
UserContextInterface
15
{
19
public
function
getUserId
()
20
{
21
return
0;
22
}
23
27
public
function
getUserType
()
28
{
29
return
UserContextInterface::USER_TYPE_GUEST
;
30
}
31
}
Magento\Authorization\Model\UserContextInterface\USER_TYPE_GUEST
const USER_TYPE_GUEST
Definition:
UserContextInterface.php:23
Magento\Webapi\Model\Authorization
Definition:
GuestUserContext.php:7
Magento\Authorization\Model\UserContextInterface
Definition:
UserContextInterface.php:15
Magento\Webapi\Model\Authorization\GuestUserContext\getUserType
getUserType()
Definition:
GuestUserContext.php:27
Magento\Webapi\Model\Authorization\GuestUserContext\getUserId
getUserId()
Definition:
GuestUserContext.php:19
Magento\Webapi\Model\Authorization\GuestUserContext
Definition:
GuestUserContext.php:14