Skip to content

Commit

Permalink
fix format intget in kopijka
Browse files Browse the repository at this point in the history
  • Loading branch information
Stierlitz committed Apr 25, 2024
1 parent b84b46c commit 070aedf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public function setCurrency(string $currency): self
public function setAmount($amount): self
{
Assert::integer($amount);
Assert::greaterThanEq($amount, 1);
Assert::lessThanEq($amount, 99999999999);

$main = floor($amount / 100); // Ціла частина
Expand Down

0 comments on commit 070aedf

Please sign in to comment.