Skip to content

Commit a32a86f

Browse files
committed
Add method isListKey
1 parent c26a5cc commit a32a86f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Types/AbstractList.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ public function getValueType(): Type
6161
return $this->valueType;
6262
}
6363

64+
/**
65+
* Returns key is a list
66+
*/
67+
public function isListKey(): bool
68+
{
69+
return $this->keyType !== null;
70+
}
71+
6472
/**
6573
* Returns a rendered output of the Type as it would be used in a DocBlock.
6674
*/

0 commit comments

Comments
 (0)