| 1 | <?php |
||
| 12 | class UsedClass |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var \BFW\Application|null $instance Application instance (Singleton) |
||
| 16 | */ |
||
| 17 | protected static $instance; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var \BFW\Config $config The config instance for the current module |
||
| 21 | */ |
||
| 22 | protected $config; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * protected for Singleton pattern |
||
| 26 | * |
||
| 27 | * @param \BFW\Config $config The config instance for the current module |
||
| 28 | */ |
||
| 29 | protected function __construct(\BFW\Config $config) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the Application instance (Singleton pattern) |
||
| 36 | * |
||
| 37 | * @param \BFW\Config|null $config The config instance for the module |
||
| 38 | * |
||
| 39 | * @return \BfwSql\UsedClass |
||
| 40 | */ |
||
| 41 | public static function getInstance($config = null) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Getter accessor to config property |
||
| 53 | * |
||
| 54 | * @return \BFW\Config |
||
| 55 | */ |
||
| 56 | public function getConfig() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Obtain the class name declared into config file "class.php" for a key |
||
| 63 | * |
||
| 64 | * @param string $classNameKey The class name key into the config file |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function obtainClassNameToUse($classNameKey) |
||
| 72 | } |
||
| 73 |