diff --git a/src/DataStructures/StrictList.php b/src/DataStructures/StrictList.php index e90b897..6346ba1 100644 --- a/src/DataStructures/StrictList.php +++ b/src/DataStructures/StrictList.php @@ -32,8 +32,8 @@ use OCC\Basics\Traits\Getter; * @author Sebastian Meyer * @package opencultureconsulting/basics * - * @template AllowedTypes - * @extends SplDoublyLinkedList + * @template AllowedType + * @extends SplDoublyLinkedList */ class StrictList extends SplDoublyLinkedList { @@ -69,7 +69,7 @@ class StrictList extends SplDoublyLinkedList * @see SplDoublyLinkedList::add() * * @param int $index The index where the new item is to be inserted - * @param AllowedTypes $item The new item for the index + * @param AllowedType $item The new item for the index * * @return void * @@ -91,7 +91,7 @@ class StrictList extends SplDoublyLinkedList /** * Append items at the end of the list. * - * @param AllowedTypes ...$items One or more items to append + * @param AllowedType ...$items One or more items to append * * @return void * @@ -118,7 +118,7 @@ class StrictList extends SplDoublyLinkedList /** * Check if item is an allowed type. * - * @param AllowedTypes $item The item to check + * @param AllowedType $item The item to check * * @return bool Whether the item is an allowed type */ @@ -156,7 +156,7 @@ class StrictList extends SplDoublyLinkedList * @see \ArrayAccess::offsetSet() * * @param ?int $index The index being set or NULL to append - * @param AllowedTypes $item The new item for the index + * @param AllowedType $item The new item for the index * * @return void * @@ -178,7 +178,7 @@ class StrictList extends SplDoublyLinkedList /** * Prepend items at the start of the list. * - * @param AllowedTypes ...$items One or more items to prepend + * @param AllowedType ...$items One or more items to prepend * * @return void * @@ -206,7 +206,7 @@ class StrictList extends SplDoublyLinkedList * Push an item at the end of the list. * @see SplDoublyLinkedList::push() * - * @param AllowedTypes $item The item to push + * @param AllowedType $item The item to push * * @return void * @@ -255,7 +255,7 @@ class StrictList extends SplDoublyLinkedList * Prepend the list with an item. * @see SplDoublyLinkedList::unshift() * - * @param AllowedTypes $item The item to unshift + * @param AllowedType $item The item to unshift * * @return void * @@ -277,7 +277,7 @@ class StrictList extends SplDoublyLinkedList /** * Create a type-sensitive, traversable list of items. * - * @param iterable $items Initial set of items + * @param iterable $items Initial set of items * @param string[] $allowedTypes Allowed types of items (optional) * * @throws InvalidArgumentException @@ -328,7 +328,7 @@ class StrictList extends SplDoublyLinkedList { /** @var string[] $allowedTypes */ $allowedTypes = $data['StrictList::allowedTypes']; - /** @var iterable $items */ + /** @var iterable $items */ $items = $data['SplDoublyLinkedList::dllist']; $this->__construct($items, $allowedTypes); /** @var int $flags */ diff --git a/src/DataStructures/StrictQueue.php b/src/DataStructures/StrictQueue.php index 5b09323..e7a5f01 100644 --- a/src/DataStructures/StrictQueue.php +++ b/src/DataStructures/StrictQueue.php @@ -30,8 +30,8 @@ use RuntimeException; * @author Sebastian Meyer * @package opencultureconsulting/basics * - * @template AllowedTypes - * @extends StrictList + * @template AllowedType + * @extends StrictList */ class StrictQueue extends StrictList { @@ -39,7 +39,7 @@ class StrictQueue extends StrictList * Dequeue an item from the queue. * @see \SplQueue::dequeue() * - * @return AllowedTypes The dequeued item + * @return AllowedType The dequeued item */ public function dequeue(): mixed { @@ -50,7 +50,7 @@ class StrictQueue extends StrictList * Add an item to the queue. * @see \SplQueue::enqueue() * - * @param AllowedTypes $item The item to enqueue + * @param AllowedType $item The item to enqueue * * @return void * @@ -87,7 +87,7 @@ class StrictQueue extends StrictList /** * Create a type-sensitive, traversable queue of items. * - * @param iterable $items Initial set of items + * @param iterable $items Initial set of items * @param string[] $allowedTypes Allowed types of items (optional) */ public function __construct(iterable $items = [], array $allowedTypes = []) diff --git a/src/DataStructures/StrictStack.php b/src/DataStructures/StrictStack.php index 59699f4..65df471 100644 --- a/src/DataStructures/StrictStack.php +++ b/src/DataStructures/StrictStack.php @@ -30,15 +30,15 @@ use RuntimeException; * @author Sebastian Meyer * @package opencultureconsulting/basics * - * @template AllowedTypes - * @extends StrictList + * @template AllowedType + * @extends StrictList */ class StrictStack extends StrictList { /** * Add an item to the stack. * - * @param AllowedTypes $item The item to stack + * @param AllowedType $item The item to stack * * @return void * @@ -52,7 +52,7 @@ class StrictStack extends StrictList /** * Unstack an item from the stack. * - * @return AllowedTypes The unstacked item + * @return AllowedType The unstacked item */ public function unstack(): mixed { @@ -85,7 +85,7 @@ class StrictStack extends StrictList /** * Create a type-sensitive, traversable stack of items. * - * @param iterable $items Initial set of items + * @param iterable $items Initial set of items * @param string[] $allowedTypes Allowed types of items (optional) */ public function __construct(iterable $items = [], array $allowedTypes = [])