1 | <?php |
||
14 | class Balloon extends FileManager implements IProxy |
||
15 | { |
||
16 | /** |
||
17 | * @param FileReaderProxy $fileReaderProxy |
||
18 | * @param string $primaryKey |
||
19 | */ |
||
20 | public function __construct(FileReaderProxy $fileReaderProxy, $primaryKey = '') |
||
24 | |||
25 | /** |
||
26 | * writes the modification into the file. |
||
27 | * |
||
28 | * @return int |
||
29 | */ |
||
30 | public function flush() |
||
34 | |||
35 | /** |
||
36 | * rollbacks the modifications not pushed. |
||
37 | */ |
||
38 | public function clear() |
||
42 | |||
43 | /** |
||
44 | * invalidates the cache of the file. |
||
45 | * |
||
46 | * @return int |
||
|
|||
47 | */ |
||
48 | public function invalidate() |
||
52 | } |
||
53 |
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.