appwrite/src/Appwrite/Utopia/Response/Model/Detection.php
2023-06-14 00:34:22 +05:30

40 lines
715 B
PHP

<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
class Detection extends Model
{
public function __construct()
{
$this
->addRule('runtime', [
'type' => self::TYPE_STRING,
'description' => 'Runtime',
'default' => '',
'example' => 'node',
]);
}
/**
* Get Name
*
* @return string
*/
public function getName(): string
{
return 'Detection';
}
/**
* Get Type
*
* @return string
*/
public function getType(): string
{
return Response::MODEL_DETECTION;
}
}