1 | <?php |
||
9 | class Factory |
||
10 | { |
||
11 | protected $loggerBuilder; |
||
12 | |||
13 | 2 | public static function create($loggerConf = ['builder' => 'NullLogger', 'config' => []]) |
|
20 | |||
21 | /** |
||
22 | * |
||
23 | * @param string $api_key |
||
24 | * @return \vfalies\tmdb\Tmdb |
||
25 | */ |
||
26 | 1 | public function getTmdb(string $api_key) |
|
30 | |||
31 | 2 | public function getBuilder($builder, array $args = []) |
|
39 | |||
40 | 2 | public function setLoggerBuilder(LoggerBuilderInterface $loggerBuilder) |
|
46 | |||
47 | /** |
||
48 | * @param $builderConfig |
||
49 | * @return array |
||
50 | */ |
||
51 | public function extractConfig(array $builderConfig) |
||
52 | { |
||
53 | return isset($builderConfig['config']) ? $builderConfig['config']:[]; |
||
54 | } |
||
55 | |||
56 | 2 | public function checkDependency(BuilderInterface $builder) |
|
65 | } |
||
66 |