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 | 1 | 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 $url |
||
45 | * |
||
46 | * @return array |
||
|
|||
47 | */ |
||
48 | public function reverseConfiguration($url) |
||
65 | } |
||
66 |
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.