summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 12:17:43 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-28 12:17:43 +0200
commit53f65de9d4163c9c095f2b8e87baca648c3645bd (patch)
tree37f167f38b25aa50bd7dd1429438c0245a280a28 /server/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php
parent60cfe3ebc039df8d6a468a43a59e7fd8c2a16956 (diff)
parent804fa322d841d73ee7592885ec500dc94e91b9e6 (diff)
Test
Diffstat (limited to 'server/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php')
-rwxr-xr-xserver/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php b/server/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php
index 225e025..b21b3dd 100755
--- a/server/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php
+++ b/server/vendor/php-opencloud/common/src/Common/Api/AbstractParams.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
namespace OpenCloud\Common\Api;
@@ -21,12 +21,12 @@ abstract class AbstractParams
const INT_TYPE = 'integer';
const INTEGER_TYPE = self::INT_TYPE;
- public static function isSupportedLocation($val)
+ public static function isSupportedLocation(string $val): bool
{
return in_array($val, [self::QUERY, self::HEADER, self::URL, self::JSON, self::RAW]);
}
- public function limit()
+ public function limit(): array
{
return [
'type' => self::INT_TYPE,
@@ -38,7 +38,7 @@ DESC
];
}
- public function marker()
+ public function marker(): array
{
return [
'type' => 'string',
@@ -51,7 +51,7 @@ DESC
];
}
- public function id($type)
+ public function id(string $type): array
{
return [
'description' => sprintf("The unique ID, or identifier, for the %s", $type),
@@ -60,7 +60,7 @@ DESC
];
}
- public function idPath()
+ public function idPath(): array
{
return [
'type' => self::STRING_TYPE,
@@ -69,7 +69,7 @@ DESC
];
}
- public function name($resource)
+ public function name(string $resource): array
{
return [
'description' => sprintf("The name of the %s", $resource),
@@ -79,7 +79,7 @@ DESC
}
- public function sortDir()
+ public function sortDir(): array
{
return [
'type' => self::STRING_TYPE,
@@ -89,7 +89,7 @@ DESC
];
}
- public function sortKey()
+ public function sortKey(): array
{
return [
'type' => self::STRING_TYPE,
@@ -97,4 +97,4 @@ DESC
'description' => "Sorts by one or more sets of attribute and sort direction combinations.",
];
}
-}
+} \ No newline at end of file