クラス
Factory
CustomerPage
factoryソース ソース
ファイル: src/Views/CustomerPage/Factory.php
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | class Factory { /** * Returns `CustomerPage` instance for the given theme * * @author Evan D Shaw <evandanielshaw@gmail.com> * @param AmazonPay $module * @return CustomerPage */ 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 ; } } |
- getInstance — Returns `CustomerPage` instance for the given theme