Skip to content

Commit

Permalink
1.6.0: #16
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 23, 2018
1 parent 379697c commit 458c1b5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ConfigProvider.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Dfe\IPay88;
use Df\Payment\ConfigProvider\IOptions;
use Dfe\IPay88\Source\Option as Opt;
// 2017-04-10
/** @method Settings s() */
final class ConfigProvider extends \Df\Payment\ConfigProvider implements IOptions {
/**
* 2017-09-18
Expand All @@ -11,7 +11,7 @@ final class ConfigProvider extends \Df\Payment\ConfigProvider implements IOption
* @used-by \Df\Payment\ConfigProvider::configOptions()
* @return array(<value> => <label>)
*/
function options() {return Opt::s()->map();}
function options() {return $this->s()->options()->o(true);}

/**
* 2017-04-13
Expand Down
11 changes: 10 additions & 1 deletion Settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php
namespace Dfe\IPay88;
use Df\Payment\Settings\Options as O;
use Dfe\IPay88\Source\Option as OptionSource;
// 2017-04-10
/** @method static Settings s() */
final class Settings extends \Df\Payment\Settings {}
final class Settings extends \Df\Payment\Settings {
/**
* 2018-08-24
* @used-by \Dfe\IPay88\ConfigProvider::options()
* @return O
*/
function options() {return $this->_options(OptionSource::class);}
}
10 changes: 6 additions & 4 deletions Source/Option.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<?php
namespace Dfe\IPay88\Source;
// 2017-04-10
// [iPay88] The available payment options for Malaysia: https://mage2.pro/t/3635
/** @method static Option s() */
/**
* 2017-04-10
* [iPay88] The available payment options for Malaysia: https://mage2.pro/t/3635
* @used-by \Dfe\IPay88\Settings::options()
* @method static Option s()
*/
final class Option extends \Df\Config\Source {
/**
* 2017-04-13
Expand All @@ -21,7 +24,6 @@ function all() {return $this->map() + df_module_json($this, 'options/multicurren
* @see \Df\Config\Source::map()
* @used-by all()
* @used-by \Df\Config\Source::toOptionArray()
* @used-by \Dfe\IPay88\ConfigProvider::options()
* @return array(<value> => <label>)
*/
function map() {return df_module_json($this, 'options/myr');}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/ipay88"
,"version": "1.5.3"
,"version": "1.6.0"
,"description": "iPay88 integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/ipay88"
Expand Down

0 comments on commit 458c1b5

Please sign in to comment.