Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
26 | interface CookieFunctionsInterface |
||
27 | { |
||
28 | /** |
||
29 | * @return callable |
||
30 | */ |
||
31 | public function getWriteCookieCallable(): callable; |
||
32 | |||
33 | /** |
||
34 | * @param callable $callable |
||
35 | * |
||
36 | * @return self |
||
|
|||
37 | */ |
||
38 | public function setWriteCookieCallable(callable $callable): self; |
||
39 | |||
40 | /** |
||
41 | * @return callable |
||
42 | */ |
||
43 | public function getWriteRawCookieCallable(): callable; |
||
44 | |||
45 | /** |
||
46 | * @param callable $callable |
||
47 | * |
||
48 | * @return self |
||
49 | */ |
||
50 | public function setWriteRawCookieCallable(callable $callable): self; |
||
51 | } |
||
52 |
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.