1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Add response model for boolean attribute

This commit is contained in:
kodumbeats 2021-08-16 16:01:20 -04:00
parent 78d013c109
commit d2ad1a899e
2 changed files with 36 additions and 0 deletions

View file

@ -79,6 +79,7 @@ class Response extends SwooleResponse
const MODEL_ATTRIBUTE_STRING = 'attributeString';
const MODEL_ATTRIBUTE_INTEGER= 'attributeInteger';
const MODEL_ATTRIBUTE_FLOAT= 'attributeFloat';
const MODEL_ATTRIBUTE_BOOLEAN= 'attributeBoolean';
const MODEL_ATTRIBUTE_EMAIL= 'attributeEmail';
const MODEL_ATTRIBUTE_IP= 'attributeIp';
const MODEL_ATTRIBUTE_URL= 'attributeUrl';

View file

@ -0,0 +1,35 @@
<?php
namespace Appwrite\Utopia\Response\Model;
use Appwrite\Utopia\Response;
use Appwrite\Utopia\Response\Model;
class AttributeBoolean extends Model
{
public function __construct()
{
$this
;
}
/**
* Get Name
*
* @return string
*/
public function getName():string
{
return 'AttributeBoolean';
}
/**
* Get Collection
*
* @return string
*/
public function getType():string
{
return Response::MODEL_ATTRIBUTE_BOOLEAN;
}
}