From d2ad1a899e06440de991c4adb572a6aa6843d3d0 Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Mon, 16 Aug 2021 16:01:20 -0400 Subject: [PATCH] Add response model for boolean attribute --- src/Appwrite/Utopia/Response.php | 1 + .../Response/Model/AttributeBoolean.php | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/Appwrite/Utopia/Response/Model/AttributeBoolean.php diff --git a/src/Appwrite/Utopia/Response.php b/src/Appwrite/Utopia/Response.php index 06c9375d0f..3a890f9a5c 100644 --- a/src/Appwrite/Utopia/Response.php +++ b/src/Appwrite/Utopia/Response.php @@ -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'; diff --git a/src/Appwrite/Utopia/Response/Model/AttributeBoolean.php b/src/Appwrite/Utopia/Response/Model/AttributeBoolean.php new file mode 100644 index 0000000000..70c089e511 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/AttributeBoolean.php @@ -0,0 +1,35 @@ +