diff --git a/composer.lock b/composer.lock index ad0a0d8ce..c07f4982b 100644 --- a/composer.lock +++ b/composer.lock @@ -287,16 +287,16 @@ }, { "name": "utopia-php/framework", - "version": "0.10.0", + "version": "0.14.0", "source": { "type": "git", "url": "https://github.com/utopia-php/framework.git", - "reference": "65909bdb24ef6b6c6751abfdea90caf96bbc6c50" + "reference": "92d4a36f3b0e22393a31877c5317c96e01760339" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/framework/zipball/65909bdb24ef6b6c6751abfdea90caf96bbc6c50", - "reference": "65909bdb24ef6b6c6751abfdea90caf96bbc6c50", + "url": "https://api.github.com/repos/utopia-php/framework/zipball/92d4a36f3b0e22393a31877c5317c96e01760339", + "reference": "92d4a36f3b0e22393a31877c5317c96e01760339", "shasum": "" }, "require": { @@ -330,9 +330,9 @@ ], "support": { "issues": "https://github.com/utopia-php/framework/issues", - "source": "https://github.com/utopia-php/framework/tree/0.10.0" + "source": "https://github.com/utopia-php/framework/tree/0.14.0" }, - "time": "2020-12-26T12:02:39+00:00" + "time": "2021-04-15T21:01:44+00:00" } ], "packages-dev": [ diff --git a/src/Database/Validator/Authorization.php b/src/Database/Validator/Authorization.php index 0dbb2543c..b2d07ce2c 100644 --- a/src/Database/Validator/Authorization.php +++ b/src/Database/Validator/Authorization.php @@ -186,4 +186,28 @@ public static function reset(): void { self::$status = self::$statusDefault; } + + /** + * Is array + * + * Function will return true if object is array. + * + * @return bool + */ + public function isArray(): bool + { + return false; + } + + /** + * Get Type + * + * Returns validator type. + * + * @return string + */ + public function getType(): string + { + return self::TYPE_ARRAY; + } } diff --git a/src/Database/Validator/DocumentId.php b/src/Database/Validator/DocumentId.php index 9dd43f3b7..7d69e9be5 100644 --- a/src/Database/Validator/DocumentId.php +++ b/src/Database/Validator/DocumentId.php @@ -78,4 +78,28 @@ public function isValid($id) return true; } + + /** + * Is array + * + * Function will return true if object is array. + * + * @return bool + */ + public function isArray(): bool + { + return false; + } + + /** + * Get Type + * + * Returns validator type. + * + * @return string + */ + public function getType(): string + { + return self::TYPE_STRING; + } } diff --git a/src/Database/Validator/Key.php b/src/Database/Validator/Key.php index ffb6d0eb1..e6bb3b426 100644 --- a/src/Database/Validator/Key.php +++ b/src/Database/Validator/Key.php @@ -52,4 +52,27 @@ public function isValid($value) return true; } + /** + * Is array + * + * Function will return true if object is array. + * + * @return bool + */ + public function isArray(): bool + { + return false; + } + + /** + * Get Type + * + * Returns validator type. + * + * @return string + */ + public function getType(): string + { + return self::TYPE_STRING; + } } diff --git a/src/Database/Validator/Permissions.php b/src/Database/Validator/Permissions.php index 7520bde1e..4a313ad42 100644 --- a/src/Database/Validator/Permissions.php +++ b/src/Database/Validator/Permissions.php @@ -63,4 +63,27 @@ public function isValid($value) return true; } + /** + * Is array + * + * Function will return true if object is array. + * + * @return bool + */ + public function isArray(): bool + { + return false; + } + + /** + * Get Type + * + * Returns validator type. + * + * @return string + */ + public function getType(): string + { + return self::TYPE_ARRAY; + } } diff --git a/src/Database/Validator/UID.php b/src/Database/Validator/UID.php index 6b4d1123e..2742364ef 100644 --- a/src/Database/Validator/UID.php +++ b/src/Database/Validator/UID.php @@ -43,4 +43,28 @@ public function isValid($value) return true; } + + /** + * Is array + * + * Function will return true if object is array. + * + * @return bool + */ + public function isArray(): bool + { + return false; + } + + /** + * Get Type + * + * Returns validator type. + * + * @return string + */ + public function getType(): string + { + return self::TYPE_STRING; + } }