Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/3rdparty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'aws/aws-sdk-php/src/HasDataTrait.php')
-rw-r--r--aws/aws-sdk-php/src/HasDataTrait.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/aws/aws-sdk-php/src/HasDataTrait.php b/aws/aws-sdk-php/src/HasDataTrait.php
index a2ff2df6..5910fff5 100644
--- a/aws/aws-sdk-php/src/HasDataTrait.php
+++ b/aws/aws-sdk-php/src/HasDataTrait.php
@@ -10,6 +10,10 @@ trait HasDataTrait
/** @var array */
private $data = [];
+ /**
+ * @return \Traversable
+ */
+ #[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->data);
@@ -23,6 +27,7 @@ trait HasDataTrait
*
* @return mixed|null
*/
+ #[\ReturnTypeWillChange]
public function & offsetGet($offset)
{
if (isset($this->data[$offset])) {
@@ -33,16 +38,28 @@ trait HasDataTrait
return $value;
}
+ /**
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->data[$offset] = $value;
}
+ /**
+ * @return bool
+ */
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->data[$offset]);
}
+ /**
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->data[$offset]);
@@ -53,6 +70,10 @@ trait HasDataTrait
return $this->data;
}
+ /**
+ * @return int
+ */
+ #[\ReturnTypeWillChange]
public function count()
{
return count($this->data);