Your IP : 216.73.217.13


Current Path : /home/rtorresani/www/vendor/magento/module-two-factor-auth/Api/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-two-factor-auth/Api/ProviderPoolInterface.php

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

namespace Magento\TwoFactorAuth\Api;

use Magento\Framework\Exception\NoSuchEntityException;

/**
 * Providers pool
 *
 * @api
 */
interface ProviderPoolInterface
{
    /**
     * Get a list of providers
     *
     * @return \Magento\TwoFactorAuth\Api\ProviderInterface[]
     */
    public function getProviders(): array;

    /**
     * Get provider by code
     *
     * @param string $code
     * @return \Magento\TwoFactorAuth\Api\ProviderInterface
     * @throws NoSuchEntityException
     */
    public function getProviderByCode(string $code): ProviderInterface;
}