Skip to content

Commit

Permalink
Create CurrencyFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskoronets committed Mar 18, 2024
1 parent 3ba5b87 commit 33a6ff8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Formatters/CurrencyFormatter
@@ -0,0 +1,11 @@
<?php

namespace Woo\GridView\Formatters;

class CurrencyFormetter implements IFormatter
{
public function format($value): string
{
return number_format($value, 2);
}
}

0 comments on commit 33a6ff8

Please sign in to comment.