mirror of
https://github.com/appwrite/appwrite
synced 2026-05-18 06:29:06 +00:00
42 lines
818 B
PHP
42 lines
818 B
PHP
<?php
|
|
|
|
namespace Appwrite\Utopia\Response\Model;
|
|
|
|
use Appwrite\Utopia\Response;
|
|
use Appwrite\Utopia\Response\Model;
|
|
|
|
class AlgoSha extends Model
|
|
{
|
|
public function __construct()
|
|
{
|
|
// No options, because this can only be imported, and verifying doesnt require any configuration
|
|
|
|
$this
|
|
->addRule('type', [
|
|
'type' => self::TYPE_STRING,
|
|
'description' => 'Algo type.',
|
|
'default' => 'sha',
|
|
'example' => 'sha',
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Get Name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return 'AlgoSHA';
|
|
}
|
|
|
|
/**
|
|
* Get Type
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getType(): string
|
|
{
|
|
return Response::MODEL_ALGO_SHA;
|
|
}
|
|
}
|