Skip to content

Commit

Permalink
Merge pull request z38#23 from VincentDEJ/add-money
Browse files Browse the repository at this point in the history
  • Loading branch information
z38 authored Mar 9, 2018
2 parents 36d7aec + d081ce6 commit c2651dd
Show file tree
Hide file tree
Showing 19 changed files with 475 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/AED.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in UAE dirhams
*/
class AED extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'AED';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/AUD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Australian dollars
*/
class AUD extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'AUD';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/BHD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Bahraini dinars
*/
class BHD extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'BHD';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 3;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/CAD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Canadian dollars
*/
class CAD extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'CAD';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/CZK.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Czech koruna
*/
class CZK extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'CZK';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/DKK.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Danish kroner
*/
class DKK extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'DKK';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/HKD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Hong Kong dollars
*/
class HKD extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'HKD';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/HUF.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Hungarian forint
*/
class HUF extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'HUF';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/ILS.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Israeli shekels
*/
class ILS extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'ILS';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/KWD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Kuwaiti dinars
*/
class KWD extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'KWD';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 3;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/MAD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Moroccan dirhams
*/
class MAD extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'MAD';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/MXN.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Mexican pesos
*/
class MXN extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'MXN';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/NOK.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Norwegian kroner
*/
class NOK extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'NOK';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/NZD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in New Zealand dollars
*/
class NZD extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'NZD';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
25 changes: 25 additions & 0 deletions src/Z38/SwissPayment/Money/PLN.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Z38\SwissPayment\Money;

/**
* Sum of money in Polish złoty
*/
class PLN extends Money
{
/**
* {@inheritdoc}
*/
final public function getCurrency()
{
return 'PLN';
}

/**
* {@inheritdoc}
*/
final protected function getDecimals()
{
return 2;
}
}
Loading

0 comments on commit c2651dd

Please sign in to comment.