mirror of
https://github.com/appwrite/appwrite
synced 2026-05-19 23:18:40 +00:00
53 lines
1.2 KiB
PHP
53 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Appwrite\Utopia\Response\Model;
|
|
|
|
use Appwrite\Utopia\Response;
|
|
use Appwrite\Utopia\Response\Model;
|
|
|
|
class Template extends Model
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this
|
|
->addRule('type', [
|
|
'type' => self::TYPE_STRING,
|
|
'description' => 'Template type',
|
|
'default' => '',
|
|
'example' => 'verification',
|
|
])
|
|
->addRule('locale', [
|
|
'type' => self::TYPE_STRING,
|
|
'description' => 'Template locale',
|
|
'default' => '',
|
|
'example' => 'en_us',
|
|
])
|
|
->addRule('message', [
|
|
'type' => self::TYPE_STRING,
|
|
'description' => 'Template message',
|
|
'default' => '',
|
|
'example' => 'Click on the link to verify your account.',
|
|
])
|
|
;
|
|
}
|
|
|
|
/**
|
|
* Get Name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return 'Template';
|
|
}
|
|
|
|
/**
|
|
* Get Type
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getType(): string
|
|
{
|
|
return Response::MODEL_TEMPLATE;
|
|
}
|
|
}
|