| Current Path : /home/rtorresani/www/vendor/magento/module-two-factor-auth/Api/Data/ |
| Current File : //home/rtorresani/www/vendor/magento/module-two-factor-auth/Api/Data/DuoDataInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\TwoFactorAuth\Api\Data;
use Magento\Framework\Api\ExtensibleDataInterface;
/**
* Represents the data needed to use duo
*
* @api
*/
interface DuoDataInterface extends ExtensibleDataInterface
{
/**
* Signature field name
*/
public const SIGNATURE = 'signature';
/**
* Api host field name
*/
public const API_HOSTNAME = 'api_hostname';
/**
* Get the signature
*
* @return string
*/
public function getSignature(): string;
/**
* Set the signature
*
* @param string $value
* @return void
*/
public function setSignature(string $value): void;
/**
* Get the api hostname
*
* @return string
*/
public function getApiHostname(): string;
/**
* Set the api hostname
*
* @param string $value
* @return void
*/
public function setApiHostname(string $value): void;
/**
* Retrieve existing extension attributes object or create a new one
*
* Used fully qualified namespaces in annotations for proper work of extension interface/class code generation
*
* @return \Magento\TwoFactorAuth\Api\Data\DuoDataExtensionInterface|null
*/
public function getExtensionAttributes(): ?DuoDataExtensionInterface;
/**
* Set an extension attributes object
*
* @param \Magento\TwoFactorAuth\Api\Data\DuoDataExtensionInterface $extensionAttributes
* @return void
*/
public function setExtensionAttributes(
DuoDataExtensionInterface $extensionAttributes
): void;
}