Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-two-factor-auth/Model/Data/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/module-two-factor-auth/Model/Data/UserConfig.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\TwoFactorAuth\Model\Data;

use Magento\Framework\Model\AbstractExtensibleModel;
use Magento\TwoFactorAuth\Api\Data\UserConfigExtensionInterface;
use Magento\TwoFactorAuth\Api\Data\UserConfigInterface;

/**
 * @inheritDoc
 */
class UserConfig extends AbstractExtensibleModel implements UserConfigInterface
{
    /**
     * @inheritDoc
     */
    public function getId(): int
    {
        return (int) $this->getData(self::ID);
    }

    /**
     * @inheritDoc
     */
    public function setId($value): void
    {
        $this->setData(self::ID, $value);
    }

    /**
     * @inheritDoc
     */
    public function getUserId(): int
    {
        return (int) $this->getData(self::USER_ID);
    }

    /**
     * @inheritDoc
     */
    public function setUserId(int $value): void
    {
        $this->setData(self::USER_ID, $value);
    }

    /**
     * @inheritDoc
     */
    public function getEncodedProviders(): string
    {
        return (string) $this->getData(self::ENCODED_PROVIDERS);
    }

    /**
     * @inheritDoc
     */
    public function setEncodedProviders(string $value): void
    {
        $this->setData(self::ENCODED_PROVIDERS, $value);
    }

    /**
     * @inheritDoc
     */
    public function getDefaultProvider(): string
    {
        return (string) $this->getData(self::DEFAULT_PROVIDER);
    }

    /**
     * @inheritDoc
     */
    public function setDefaultProvider(string $value): void
    {
        $this->setData(self::DEFAULT_PROVIDER, $value);
    }

    /**
     * @inheritDoc
     */
    public function getExtensionAttributes(): ?UserConfigExtensionInterface
    {
        return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
    }

    /**
     * @inheritDoc
     */
    public function setExtensionAttributes(UserConfigExtensionInterface $extensionAttributes): void
    {
        $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
    }
}