Skip to content

Commit

Permalink
added size (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko authored Nov 6, 2024
1 parent d32b280 commit 9bef930
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ public function max(Type $type, $params)
return $type;
}

public function size(Type $type, $params)
{
$type = $this->min($type, $params);

return $this->max($type, $params);
}

public function in(Type $type, $params)
{
return $type->enum(
Expand Down

0 comments on commit 9bef930

Please sign in to comment.