| 1 |
<?php |
| 2 |
/** |
| 3 |
* Extends the Configuration class. |
| 4 |
* Delegate to the ConfigurationManager instance to access the data in the database. |
| 5 |
* |
| 6 |
* @package SeQura\WC |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Core\Extension\Infrastructure\Configuration; |
| 10 |
|
| 11 |
use SeQura\Core\Infrastructure\Configuration\Configuration as CoreConfiguration; |
| 12 |
use SeQura\Core\Infrastructure\ServiceRegister; |
| 13 |
use SeQura\WC\Services\Constants\Interface_Constants; |
| 14 |
|
| 15 |
/** |
| 16 |
* Extends the Configuration class. Wrapper to ease the read and write of configuration values. |
| 17 |
*/ |
| 18 |
class Configuration extends CoreConfiguration { |
| 19 |
|
| 20 |
/** |
| 21 |
* Retrieves integration name. |
| 22 |
* |
| 23 |
* @return string Integration name. |
| 24 |
*/ |
| 25 |
public function getIntegrationName() { |
| 26 |
/** |
| 27 |
* Constants |
| 28 |
* |
| 29 |
* @var Interface_Constants $constants |
| 30 |
*/ |
| 31 |
$constants = ServiceRegister::getService( Interface_Constants::class ); |
| 32 |
return $constants->get_integration_name(); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Returns async process starter url, always in http. |
| 37 |
* |
| 38 |
* @param string $guid Process identifier. |
| 39 |
* |
| 40 |
* @return string Formatted URL of async process starter endpoint. |
| 41 |
*/ |
| 42 |
public function getAsyncProcessUrl( $guid ) { |
| 43 |
return ''; // Not used in this implementation. |
| 44 |
} |
| 45 |
} |
| 46 |
|