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

40 lines
706 B
PHP
Raw Normal View History

2020-06-23 15:01:20 +00:00
<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
class Session extends Model
{
public function __construct()
{
2020-06-24 06:41:00 +00:00
$this->addRule('roles', [
'type' => 'string',
'description' => 'User list of roles',
'default' => [],
'example' => [],
'array' => true,
]);
2020-06-23 15:01:20 +00:00
}
/**
* Get Name
*
* @return string
*/
public function getName():string
{
return 'Session';
}
/**
* Get Collection
*
* @return string
*/
public function getType():string
{
2020-06-24 06:41:00 +00:00
return Response::MODEL_SESSION;
2020-06-23 15:01:20 +00:00
}
}