1 | <?php |
||
13 | class ConfigurationManager |
||
14 | { |
||
15 | const CACHE_KEY = 'configuration.list'; |
||
16 | |||
17 | /** |
||
18 | * @var TypeProvider |
||
19 | */ |
||
20 | private $typeProvider; |
||
21 | |||
22 | /** |
||
23 | * @var ConfigurationParser |
||
24 | */ |
||
25 | protected $configurationParser; |
||
26 | |||
27 | /** |
||
28 | * @var MemcachedCache |
||
29 | */ |
||
30 | protected $memcache; |
||
31 | |||
32 | /** |
||
33 | * ConfigurationManager constructor. |
||
34 | * |
||
35 | * @param TypeProvider $typeProvider |
||
36 | * @param ConfigurationParser $configurationParser |
||
37 | * @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 | 1 | public function createConfiguration($typeName, $week, $seance) |
|
67 | |||
68 | /** |
||
69 | * @param string $typeName |
||
70 | * |
||
71 | * @return array |
||
|
|||
72 | */ |
||
73 | public function findConfigurationsByType($typeName) |
||
100 | } |
||
101 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.