We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit b384b3cc authored by Vitaliy Ryaboy's avatar Vitaliy Ryaboy Committed by GitHub

fix phpDoc for storeId in Helper/Data (#758)

Co-authored-by: default avatarAttila Kiss <42297201+cyattilakiss@users.noreply.github.com>
parent 0f77b4b4
...@@ -443,7 +443,7 @@ class Data extends AbstractHelper ...@@ -443,7 +443,7 @@ class Data extends AbstractHelper
* gives back global configuration values * gives back global configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenAbstractConfigData($field, $storeId = null) public function getAdyenAbstractConfigData($field, $storeId = null)
...@@ -455,7 +455,7 @@ class Data extends AbstractHelper ...@@ -455,7 +455,7 @@ class Data extends AbstractHelper
* gives back global configuration values as boolean * gives back global configuration values as boolean
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenAbstractConfigDataFlag($field, $storeId = null) public function getAdyenAbstractConfigDataFlag($field, $storeId = null)
...@@ -467,7 +467,7 @@ class Data extends AbstractHelper ...@@ -467,7 +467,7 @@ class Data extends AbstractHelper
* Gives back adyen_cc configuration values * Gives back adyen_cc configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenCcConfigData($field, $storeId = null) public function getAdyenCcConfigData($field, $storeId = null)
...@@ -479,7 +479,7 @@ class Data extends AbstractHelper ...@@ -479,7 +479,7 @@ class Data extends AbstractHelper
* Gives back adyen_cc configuration values as flag * Gives back adyen_cc configuration values as flag
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenCcConfigDataFlag($field, $storeId = null) public function getAdyenCcConfigDataFlag($field, $storeId = null)
...@@ -491,7 +491,7 @@ class Data extends AbstractHelper ...@@ -491,7 +491,7 @@ class Data extends AbstractHelper
* Gives back adyen_cc_vault configuration values as flag * Gives back adyen_cc_vault configuration values as flag
* *
* @param $field * @param $field
* @param int|null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenCcVaultConfigDataFlag($field, $storeId = null) public function getAdyenCcVaultConfigDataFlag($field, $storeId = null)
...@@ -503,7 +503,7 @@ class Data extends AbstractHelper ...@@ -503,7 +503,7 @@ class Data extends AbstractHelper
* Gives back adyen_hpp configuration values * Gives back adyen_hpp configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenHppConfigData($field, $storeId = null) public function getAdyenHppConfigData($field, $storeId = null)
...@@ -515,7 +515,7 @@ class Data extends AbstractHelper ...@@ -515,7 +515,7 @@ class Data extends AbstractHelper
* Gives back adyen_hpp configuration values as flag * Gives back adyen_hpp configuration values as flag
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenHppConfigDataFlag($field, $storeId = null) public function getAdyenHppConfigDataFlag($field, $storeId = null)
...@@ -527,7 +527,7 @@ class Data extends AbstractHelper ...@@ -527,7 +527,7 @@ class Data extends AbstractHelper
* Gives back adyen_oneclick configuration values * Gives back adyen_oneclick configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenOneclickConfigData($field, $storeId = null) public function getAdyenOneclickConfigData($field, $storeId = null)
...@@ -539,7 +539,7 @@ class Data extends AbstractHelper ...@@ -539,7 +539,7 @@ class Data extends AbstractHelper
* Gives back adyen_oneclick configuration values as flag * Gives back adyen_oneclick configuration values as flag
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenOneclickConfigDataFlag($field, $storeId = null) public function getAdyenOneclickConfigDataFlag($field, $storeId = null)
...@@ -549,7 +549,7 @@ class Data extends AbstractHelper ...@@ -549,7 +549,7 @@ class Data extends AbstractHelper
/** /**
* @param $field * @param $field
* @param int|null $storeId * @param null|int|string $storeId
* @return bool|mixed * @return bool|mixed
*/ */
public function getAdyenPosCloudConfigData($field, $storeId = null) public function getAdyenPosCloudConfigData($field, $storeId = null)
...@@ -559,7 +559,7 @@ class Data extends AbstractHelper ...@@ -559,7 +559,7 @@ class Data extends AbstractHelper
/** /**
* @param $field * @param $field
* @param int|null $storeId * @param null|int|string $storeId
* @return bool|mixed * @return bool|mixed
*/ */
public function getAdyenPosCloudConfigDataFlag($field, $storeId = null) public function getAdyenPosCloudConfigDataFlag($field, $storeId = null)
...@@ -571,7 +571,7 @@ class Data extends AbstractHelper ...@@ -571,7 +571,7 @@ class Data extends AbstractHelper
* Gives back adyen_pay_by_mail configuration values * Gives back adyen_pay_by_mail configuration values
* *
* @param $field * @param $field
* @param int|null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenPayByMailConfigData($field, $storeId = null) public function getAdyenPayByMailConfigData($field, $storeId = null)
...@@ -583,7 +583,7 @@ class Data extends AbstractHelper ...@@ -583,7 +583,7 @@ class Data extends AbstractHelper
* Gives back adyen_pay_by_mail configuration values as flag * Gives back adyen_pay_by_mail configuration values as flag
* *
* @param $field * @param $field
* @param int|null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenPayByMailConfigDataFlag($field, $storeId = null) public function getAdyenPayByMailConfigDataFlag($field, $storeId = null)
...@@ -595,7 +595,7 @@ class Data extends AbstractHelper ...@@ -595,7 +595,7 @@ class Data extends AbstractHelper
* Gives back adyen_boleto configuration values * Gives back adyen_boleto configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenBoletoConfigData($field, $storeId = null) public function getAdyenBoletoConfigData($field, $storeId = null)
...@@ -607,7 +607,7 @@ class Data extends AbstractHelper ...@@ -607,7 +607,7 @@ class Data extends AbstractHelper
* Gives back adyen_boleto configuration values as flag * Gives back adyen_boleto configuration values as flag
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenBoletoConfigDataFlag($field, $storeId = null) public function getAdyenBoletoConfigDataFlag($field, $storeId = null)
...@@ -619,7 +619,7 @@ class Data extends AbstractHelper ...@@ -619,7 +619,7 @@ class Data extends AbstractHelper
* Gives back adyen_apple_pay configuration values * Gives back adyen_apple_pay configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenApplePayConfigData($field, $storeId = null) public function getAdyenApplePayConfigData($field, $storeId = null)
...@@ -628,7 +628,7 @@ class Data extends AbstractHelper ...@@ -628,7 +628,7 @@ class Data extends AbstractHelper
} }
/** /**
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenApplePayMerchantIdentifier($storeId = null) public function getAdyenApplePayMerchantIdentifier($storeId = null)
...@@ -642,7 +642,7 @@ class Data extends AbstractHelper ...@@ -642,7 +642,7 @@ class Data extends AbstractHelper
} }
/** /**
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenApplePayPemFileLocation($storeId = null) public function getAdyenApplePayPemFileLocation($storeId = null)
...@@ -659,7 +659,7 @@ class Data extends AbstractHelper ...@@ -659,7 +659,7 @@ class Data extends AbstractHelper
* Gives back adyen_google_pay configuration values * Gives back adyen_google_pay configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenGooglePayConfigData($field, $storeId = null) public function getAdyenGooglePayConfigData($field, $storeId = null)
...@@ -671,7 +671,7 @@ class Data extends AbstractHelper ...@@ -671,7 +671,7 @@ class Data extends AbstractHelper
* Gives back adyen_google_pay configuration values * Gives back adyen_google_pay configuration values
* *
* @param $field * @param $field
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function isAdyenGooglePayEnabled($storeId = null) public function isAdyenGooglePayEnabled($storeId = null)
...@@ -680,7 +680,7 @@ class Data extends AbstractHelper ...@@ -680,7 +680,7 @@ class Data extends AbstractHelper
} }
/** /**
* @param null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getAdyenGooglePayMerchantIdentifier($storeId = null) public function getAdyenGooglePayMerchantIdentifier($storeId = null)
...@@ -722,7 +722,7 @@ class Data extends AbstractHelper ...@@ -722,7 +722,7 @@ class Data extends AbstractHelper
/** /**
* Check if configuration is set to demo mode * Check if configuration is set to demo mode
* *
* @param int|null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function isDemoMode($storeId = null) public function isDemoMode($storeId = null)
...@@ -743,7 +743,7 @@ class Data extends AbstractHelper ...@@ -743,7 +743,7 @@ class Data extends AbstractHelper
/** /**
* Retrieve the API key * Retrieve the API key
* *
* @param int|null $storeId * @param null|int|string $storeId
* @return string * @return string
*/ */
public function getAPIKey($storeId = null) public function getAPIKey($storeId = null)
...@@ -773,7 +773,7 @@ class Data extends AbstractHelper ...@@ -773,7 +773,7 @@ class Data extends AbstractHelper
/** /**
* Retrieve the webserver username * Retrieve the webserver username
* *
* @param int|null $storeId * @param null|int|string $storeId
* @return string * @return string
*/ */
public function getWsUsername($storeId = null) public function getWsUsername($storeId = null)
...@@ -789,7 +789,7 @@ class Data extends AbstractHelper ...@@ -789,7 +789,7 @@ class Data extends AbstractHelper
/** /**
* Retrieve the Live endpoint prefix key * Retrieve the Live endpoint prefix key
* *
* @param int|null $storeId * @param null|int|string $storeId
* @return string * @return string
*/ */
public function getLiveEndpointPrefix($storeId = null) public function getLiveEndpointPrefix($storeId = null)
...@@ -867,11 +867,11 @@ class Data extends AbstractHelper ...@@ -867,11 +867,11 @@ class Data extends AbstractHelper
* *
* @param $field * @param $field
* @param $paymentMethodCode * @param $paymentMethodCode
* @param $storeId * @param null|int|string $storeId
* @param bool|false $flag * @param bool|false $flag
* @return bool|mixed * @return bool|mixed
*/ */
public function getConfigData($field, $paymentMethodCode, $storeId, $flag = false) public function getConfigData($field, $paymentMethodCode, $storeId = null, $flag = false)
{ {
$path = 'payment/' . $paymentMethodCode . '/' . $field; $path = 'payment/' . $paymentMethodCode . '/' . $field;
...@@ -1391,7 +1391,7 @@ class Data extends AbstractHelper ...@@ -1391,7 +1391,7 @@ class Data extends AbstractHelper
} }
/** /**
* @param int|null $storeId * @param null|int|string $storeId
* @return string the X API Key for the specified or current store * @return string the X API Key for the specified or current store
*/ */
public function getPosApiKey($storeId = null) public function getPosApiKey($storeId = null)
...@@ -1407,7 +1407,7 @@ class Data extends AbstractHelper ...@@ -1407,7 +1407,7 @@ class Data extends AbstractHelper
/** /**
* Return the Store ID for the current store/mode * Return the Store ID for the current store/mode
* *
* @param int|null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function getPosStoreId($storeId = null) public function getPosStoreId($storeId = null)
...@@ -1421,7 +1421,7 @@ class Data extends AbstractHelper ...@@ -1421,7 +1421,7 @@ class Data extends AbstractHelper
* return the merchant account name defined in required settings. * return the merchant account name defined in required settings.
* *
* @param $paymentMethod * @param $paymentMethod
* @param int|null $storeId * @param null|int|string $storeId
* @return string * @return string
*/ */
public function getAdyenMerchantAccount($paymentMethod, $storeId = null) public function getAdyenMerchantAccount($paymentMethod, $storeId = null)
...@@ -1476,7 +1476,7 @@ class Data extends AbstractHelper ...@@ -1476,7 +1476,7 @@ class Data extends AbstractHelper
/** /**
* Initializes and returns Adyen Client and sets the required parameters of it * Initializes and returns Adyen Client and sets the required parameters of it
* *
* @param int|null $storeId * @param null|int|string $storeId
* @param string|null $apiKey * @param string|null $apiKey
* @return \Adyen\Client * @return \Adyen\Client
* @throws \Adyen\AdyenException * @throws \Adyen\AdyenException
...@@ -1573,7 +1573,7 @@ class Data extends AbstractHelper ...@@ -1573,7 +1573,7 @@ class Data extends AbstractHelper
* Get origin key for a specific origin using the adyen api library client * Get origin key for a specific origin using the adyen api library client
* *
* @param $origin * @param $origin
* @param int|null $storeId * @param null|int|string $storeId
* @return string * @return string
* @throws \Adyen\AdyenException * @throws \Adyen\AdyenException
*/ */
...@@ -1604,7 +1604,7 @@ class Data extends AbstractHelper ...@@ -1604,7 +1604,7 @@ class Data extends AbstractHelper
} }
/** /**
* @param int|null $storeId * @param null|int|string $storeId
* @return string * @return string
*/ */
public function getCheckoutEnvironment($storeId = null) public function getCheckoutEnvironment($storeId = null)
...@@ -1627,7 +1627,7 @@ class Data extends AbstractHelper ...@@ -1627,7 +1627,7 @@ class Data extends AbstractHelper
} }
/** /**
* @param int|null $storeId * @param null|int|string $storeId
* @return string * @return string
*/ */
public function getCheckoutCardComponentJs($storeId = null) public function getCheckoutCardComponentJs($storeId = null)
...@@ -1722,7 +1722,7 @@ class Data extends AbstractHelper ...@@ -1722,7 +1722,7 @@ class Data extends AbstractHelper
/** /**
* For backwards compatibility get the recurringType used for HPP + current billing agreements * For backwards compatibility get the recurringType used for HPP + current billing agreements
* *
* @param null $storeId * @param null|int|string $storeId
* @return null|string * @return null|string
*/ */
public function getRecurringTypeFromOneclickRecurringSetting($storeId = null) public function getRecurringTypeFromOneclickRecurringSetting($storeId = null)
...@@ -1762,7 +1762,7 @@ class Data extends AbstractHelper ...@@ -1762,7 +1762,7 @@ class Data extends AbstractHelper
/** /**
* Check if CreditCard vault is enabled * Check if CreditCard vault is enabled
* *
* @param int|null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function isCreditCardVaultEnabled($storeId = null) public function isCreditCardVaultEnabled($storeId = null)
...@@ -1786,7 +1786,7 @@ class Data extends AbstractHelper ...@@ -1786,7 +1786,7 @@ class Data extends AbstractHelper
/** /**
* Check if 3DS2.0 is enabled for credit cards * Check if 3DS2.0 is enabled for credit cards
* *
* @param int|null $storeId * @param null|int|string $storeId
* @return mixed * @return mixed
*/ */
public function isCreditCardThreeDS2Enabled($storeId = null) public function isCreditCardThreeDS2Enabled($storeId = null)
...@@ -1849,7 +1849,7 @@ class Data extends AbstractHelper ...@@ -1849,7 +1849,7 @@ class Data extends AbstractHelper
} }
/** /**
* @param int $storeId * @param null|int|string $storeId
* @return mixed|string * @return mixed|string
*/ */
public function getCurrentLocaleCode($storeId) public function getCurrentLocaleCode($storeId)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment