forked from z38/swiss-payment
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request z38#23 from VincentDEJ/add-money
- Loading branch information
Showing
19 changed files
with
475 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.