関数
Factory::getInstance( Aivec\Welcart\SettlementModules\AmazonPay\AmazonPay $module )
CustomerPage instance for the given themeパラメータ パラメータ
- $module
(AmazonPay) (必須)
ファイル: src/Views/CustomerPage/Factory.php
public function getInstance(AmazonPay $module) {
$instance = null;
$theme = AmazonPay::getThemeConfig()['stylesheet'];
switch ($theme) {
case Constants::TCD_GLOMOUR:
$instance = new Themes\TcdGlamour($module);
break;
case Constants::TCD_ICONIC:
$instance = new Themes\TcdIconic($module);
break;
case Constants::TCD_EGO:
$instance = new Themes\TcdEgo($module);
break;
default:
$instance = new CustomerPage($module);
break;
}
return $instance;
}