Your IP : 216.73.217.13


Current Path : /home/rtorresani/www/vendor/magento/module-jwt-user-token/Model/Data/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-jwt-user-token/Model/Data/JwtUserContext.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

declare(strict_types=1);

namespace Magento\JwtUserToken\Model\Data;

use Magento\Authorization\Model\UserContextInterface;

class JwtUserContext implements UserContextInterface
{
    /**
     * @var int|null
     */
    private $userId;

    /**
     * @var int|null
     */
    private $userType;

    /**
     * @param int|null $userId
     * @param int|null $userType
     */
    public function __construct(?int $userId, ?int $userType)
    {
        $this->userId = $userId;
        $this->userType = $userType;
    }

    /**
     * @inheritDoc
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * @inheritDoc
     */
    public function getUserType()
    {
        return $this->userType;
    }
}