appwrite/src/Appwrite/Utopia/Response/Model/HealthAntivirus.php

48 lines
1 KiB
PHP
Raw Normal View History

2021-12-14 14:17:55 +00:00
<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
class HealthAntivirus extends Model
2021-12-14 14:17:55 +00:00
{
public function __construct()
{
$this
->addRule('version', [
'type' => self::TYPE_STRING,
'description' => 'Antivirus version.',
2021-12-14 14:17:55 +00:00
'default' => '',
'example' => '1.0.0',
])
->addRule('status', [
'type' => self::TYPE_STRING,
'description' => 'Antivirus status. Possible values can are: `disabled`, `offline`, `online`',
2021-12-14 14:17:55 +00:00
'default' => '',
'example' => 'online',
])
;
}
/**
* Get Name
*
* @return string
*/
2022-05-23 14:54:50 +00:00
public function getName(): string
2021-12-14 14:17:55 +00:00
{
return 'Health Antivirus';
2021-12-14 14:17:55 +00:00
}
/**
* Get Type
2021-12-14 14:17:55 +00:00
*
* @return string
*/
2022-05-23 14:54:50 +00:00
public function getType(): string
2021-12-14 14:17:55 +00:00
{
return Response::MODEL_HEALTH_ANTIVIRUS;
}
}