1 | <?php |
||
8 | class UrlTransformer |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $baseUrl; |
||
14 | |||
15 | /** |
||
16 | * UrlTransformer constructor. |
||
17 | * |
||
18 | * @param string $baseUrl |
||
19 | */ |
||
20 | 3 | public function __construct($baseUrl) |
|
24 | |||
25 | /** |
||
26 | * @param string $week |
||
27 | * @param string $seance |
||
28 | * @param string $type |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | 1 | public function transformPlan($week, $seance, $type) |
|
42 | |||
43 | /** |
||
44 | * @param string $typeName |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 1 | public function transformType($typeName) |
|
52 | |||
53 | /** |
||
54 | * @param string $url |
||
55 | * |
||
56 | * @return array |
||
|
|||
57 | */ |
||
58 | 1 | public function reverseConfiguration($url) |
|
75 | } |
||
76 |
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.