Skip to content

Commit c3951c4

Browse files
committed
Improve OrderedMap interface
1 parent bd7dea7 commit c3951c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/MemberOrderedMap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
* @template TKey
1111
* @template TValue of StructuredField
1212
* @template-extends MemberContainer<TKey, TValue>
13+
*
14+
* @method static push(array ...$pairs) Inserts pair at the end of the member list
15+
* @method static unshift(array ...$pairs) Inserts pair at the start of the member list
16+
* @method static insert(int $index, array ...$pairs) Inserts pairs at the index
17+
* @method static replace(int $index, array $pair) Replaces the pair at the given index
1318
*/
1419
interface MemberOrderedMap extends MemberContainer
1520
{

0 commit comments

Comments
 (0)