appwrite/src/Appwrite/Utopia/Response/Model/MFARecoveryCodes.php
2024-03-01 16:22:51 +00:00

42 lines
819 B
PHP

<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
class MFARecoveryCodes extends Model
{
public function __construct()
{
$this
->addRule('recoveryCodes', [
'type' => self::TYPE_STRING,
'description' => 'Recovery codes.',
'array' => true,
'default' => [],
'example' => ['a3kf0-s0cl2', 's0co1-as98s']
])
;
}
/**
* Get Name
*
* @return string
*/
public function getName(): string
{
return 'MFA Recovery Codes';
}
/**
* Get Type
*
* @return string
*/
public function getType(): string
{
return Response::MODEL_MFA_RECOVERY_CODES;
}
}