42 lines
766 B
PHP
42 lines
766 B
PHP
<?php
|
|
|
|
namespace Appwrite\Utopia\Response\Model;
|
|
|
|
use Appwrite\Utopia\Response;
|
|
use Appwrite\Utopia\Response\Model;
|
|
|
|
class HealthVersion extends Model
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this
|
|
->addRule('version', [
|
|
'type' => self::TYPE_STRING,
|
|
'description' => 'Version of the Appwrite instance.',
|
|
'default' => '',
|
|
'example' => '0.11.0',
|
|
])
|
|
;
|
|
}
|
|
|
|
/**
|
|
* Get Name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return 'Health Version';
|
|
}
|
|
|
|
/**
|
|
* Get Type
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getType(): string
|
|
{
|
|
return Response::MODEL_HEALTH_VERSION;
|
|
}
|
|
}
|