Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/framework/Jwt/Payload/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/framework/Jwt/Payload/NestedPayload.php

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

declare(strict_types=1);

namespace Magento\Framework\Jwt\Payload;

class NestedPayload implements NestedPayloadInterface
{
    /**
     * @var string
     */
    private $token;

    /**
     * @param string $token
     */
    public function __construct(string $token)
    {
        $this->token = $token;
    }

    /**
     * @inheritDoc
     */
    public function getContent(): string
    {
        return $this->token;
    }

    /**
     * @inheritDoc
     */
    public function getContentType(): ?string
    {
        return self::CONTENT_TYPE;
    }
}