2021-12-14 14:17:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Appwrite\Utopia\Response\Model;
|
|
|
|
|
|
|
|
|
|
use Appwrite\Utopia\Response;
|
|
|
|
|
use Appwrite\Utopia\Response\Model;
|
|
|
|
|
|
2021-12-15 10:06:26 +00:00
|
|
|
class HealthAntivirus extends Model
|
2021-12-14 14:17:55 +00:00
|
|
|
{
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this
|
|
|
|
|
->addRule('version', [
|
|
|
|
|
'type' => self::TYPE_STRING,
|
2021-12-15 10:06:26 +00:00
|
|
|
'description' => 'Antivirus version.',
|
2021-12-14 14:17:55 +00:00
|
|
|
'default' => '',
|
|
|
|
|
'example' => '1.0.0',
|
|
|
|
|
])
|
|
|
|
|
->addRule('status', [
|
|
|
|
|
'type' => self::TYPE_STRING,
|
2021-12-15 10:06:26 +00:00
|
|
|
'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
|
|
|
{
|
2021-12-15 10:06:26 +00:00
|
|
|
return 'Health Antivirus';
|
2021-12-14 14:17:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-12-15 10:06:26 +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;
|
|
|
|
|
}
|
|
|
|
|
}
|