1 | <?php |
||
14 | class ConfigurationManager |
||
15 | { |
||
16 | const CACHE_KEY = 'configuration.list'; |
||
17 | |||
18 | /** |
||
19 | * @var TypeProvider |
||
20 | */ |
||
21 | private $typeProvider; |
||
22 | |||
23 | /** |
||
24 | * @var ConfigurationParser |
||
25 | */ |
||
26 | protected $configurationParser; |
||
27 | |||
28 | /** |
||
29 | * @var MemcachedCache |
||
30 | */ |
||
31 | protected $memcache; |
||
32 | |||
33 | /** |
||
34 | * @var UrlTransformer |
||
35 | */ |
||
36 | protected $urlTransformer; |
||
37 | |||
38 | /** |
||
39 | * ConfigurationManager constructor. |
||
40 | * |
||
41 | * @param TypeProvider $typeProvider |
||
42 | * @param ConfigurationParser $configurationParser |
||
43 | * @param MemcachedCache $memcachedCache |
||
44 | * @param UrlTransformer $urlTransformer |
||
45 | */ |
||
46 | 2 | public function __construct( |
|
57 | |||
58 | /** |
||
59 | * @param string $typeName |
||
60 | * @param int $week |
||
61 | * @param int $seance |
||
62 | * |
||
63 | * @return Configuration |
||
64 | */ |
||
65 | 2 | public function createConfiguration($typeName, $week, $seance) |
|
75 | |||
76 | /** |
||
77 | * @param string $typeName |
||
78 | * |
||
79 | * @return array |
||
80 | */ |
||
81 | 1 | public function findConfigurationsByType($typeName) |
|
110 | } |
||
111 |