Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/ArrayAccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait ArrayAccessTrait
* This method is required by the SPL interface {@see \IteratorAggregate}.
* It will be implicitly called when you use `foreach` to traverse the collection.
*
* @return ArrayIterator an iterator for traversing the cookies in the collection.
* @return ArrayIterator An iterator for traversing the cookies in the collection.
*/
public function getIterator(): ArrayIterator
{
Expand All @@ -33,7 +33,7 @@ public function getIterator(): ArrayIterator
* Returns the number of data items.
* This method is required by Countable interface.
*
* @return int number of data elements.
* @return int Number of data elements.
*/
public function count(): int
{
Expand All @@ -43,7 +43,7 @@ public function count(): int
/**
* This method is required by the interface {@see \ArrayAccess}.
*
* @param mixed $offset the offset to check on
* @param mixed $offset The offset to check on.
*
* @return bool
*/
Expand All @@ -55,9 +55,9 @@ public function offsetExists($offset): bool
/**
* This method is required by the interface {@see \ArrayAccess}.
*
* @param mixed $offset the offset to retrieve element.
* @param mixed $offset The offset to retrieve element.
*
* @return mixed the element at the offset, null if no element is found at the offset
* @return mixed The element at the offset, null if no element is found at the offset.
*/
public function offsetGet($offset)
{
Expand All @@ -67,8 +67,8 @@ public function offsetGet($offset)
/**
* This method is required by the interface {@see \ArrayAccess}.
*
* @param mixed $offset the offset to set element
* @param mixed $value the element value
* @param mixed $offset The offset to set element.
* @param mixed $value The element value.
*/
public function offsetSet($offset, $value): void
{
Expand All @@ -82,7 +82,7 @@ public function offsetSet($offset, $value): void
/**
* This method is required by the interface {@see \ArrayAccess}.
*
* @param mixed $offset the offset to unset element
* @param mixed $offset The offset to unset element.
*/
public function offsetUnset($offset): void
{
Expand Down
Loading