mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Prefix all attribute models with Attribute
This commit is contained in:
parent
6948a75133
commit
78d013c109
4 changed files with 10 additions and 16 deletions
|
|
@ -77,17 +77,11 @@ class Response extends SwooleResponse
|
|||
const MODEL_ATTRIBUTE = 'attribute';
|
||||
const MODEL_ATTRIBUTE_LIST = 'attributeList';
|
||||
const MODEL_ATTRIBUTE_STRING = 'attributeString';
|
||||
const MODEL_ATTRIBUTE_STRING_LIST = 'attributeStringList';
|
||||
const MODEL_INTEGER= 'integer';
|
||||
const MODEL_INTEGER_LIST= 'integerList';
|
||||
const MODEL_FLOAT= 'float';
|
||||
const MODEL_FLOAT_LIST= 'floatList';
|
||||
const MODEL_ATTRIBUTE_EMAIL= 'email';
|
||||
const MODEL_EMAIL_LIST= 'emailList';
|
||||
const MODEL_ATTRIBUTE_IP= 'ip';
|
||||
const MODEL_IP_LIST= 'ipList';
|
||||
const MODEL_ATTRIBUTE_URL= 'url';
|
||||
const MODEL_URL_LIST= 'urlList';
|
||||
const MODEL_ATTRIBUTE_INTEGER= 'attributeInteger';
|
||||
const MODEL_ATTRIBUTE_FLOAT= 'attributeFloat';
|
||||
const MODEL_ATTRIBUTE_EMAIL= 'attributeEmail';
|
||||
const MODEL_ATTRIBUTE_IP= 'attributeIp';
|
||||
const MODEL_ATTRIBUTE_URL= 'attributeUrl';
|
||||
|
||||
// Users
|
||||
const MODEL_USER = 'user';
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class AttributeFloat extends Attribute
|
|||
*/
|
||||
public function getName():string
|
||||
{
|
||||
return 'Float';
|
||||
return 'AttributeFloat';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -46,6 +46,6 @@ class AttributeFloat extends Attribute
|
|||
*/
|
||||
public function getType():string
|
||||
{
|
||||
return Response::MODEL_FLOAT;
|
||||
return Response::MODEL_ATTRIBUTE_FLOAT;
|
||||
}
|
||||
}
|
||||
|
|
@ -36,7 +36,7 @@ class AttributeInteger extends Attribute
|
|||
*/
|
||||
public function getName():string
|
||||
{
|
||||
return 'Integer';
|
||||
return 'AttributeInteger';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -46,6 +46,6 @@ class AttributeInteger extends Attribute
|
|||
*/
|
||||
public function getType():string
|
||||
{
|
||||
return Response::MODEL_INTEGER;
|
||||
return Response::MODEL_ATTRIBUTE_INTEGER;
|
||||
}
|
||||
}
|
||||
|
|
@ -26,7 +26,7 @@ class AttributeString extends Attribute
|
|||
*/
|
||||
public function getName():string
|
||||
{
|
||||
return 'String';
|
||||
return 'AttributeString';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue