Skip to content

Commit 9bef930

Browse files
added size (#618)
1 parent d32b280 commit 9bef930

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Support/OperationExtensions/RulesExtractor/RulesMapper.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ public function max(Type $type, $params)
139139
return $type;
140140
}
141141

142+
public function size(Type $type, $params)
143+
{
144+
$type = $this->min($type, $params);
145+
146+
return $this->max($type, $params);
147+
}
148+
142149
public function in(Type $type, $params)
143150
{
144151
return $type->enum(

0 commit comments

Comments
 (0)