1 | <?php |
||
13 | class ConfigurationManager |
||
14 | { |
||
15 | const CACHE_KEY = 'configuration.list'; |
||
16 | |||
17 | /** |
||
18 | * @var TypeProvider |
||
19 | */ |
||
20 | private $typeProvider; |
||
21 | |||
22 | /** |
||
23 | 1 | * @var ConfigurationParser |
|
24 | */ |
||
25 | 1 | protected $configurationParser; |
|
26 | 1 | ||
27 | /** |
||
28 | * @var MemcachedCache |
||
29 | */ |
||
30 | protected $memcache; |
||
31 | |||
32 | /** |
||
33 | * ConfigurationManager constructor. |
||
34 | * |
||
35 | 1 | * @param TypeProvider $typeProvider |
|
36 | * @param ConfigurationParser $configurationParser |
||
37 | 1 | * @param MemcachedCache $memcachedCache |
|
38 | */ |
||
39 | 1 | public function __construct( |
|
48 | |||
49 | /** |
||
50 | * @param string $typeName |
||
51 | * @param int $week |
||
52 | * @param int $seance |
||
53 | * |
||
54 | * @return Configuration |
||
55 | */ |
||
56 | public function createConfiguration($typeName, $week, $seance) |
||
67 | |||
68 | /** |
||
69 | * @param string $typeName |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | public function findConfigurationsByType($typeName) |
||
98 | } |
||
99 |