1 | <?php |
||
14 | class RunSingle |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $config_file = 'run_single_config.php'; |
||
20 | |||
21 | /** |
||
22 | * @var \Ingenerator\RunSingle\LockDriver |
||
23 | */ |
||
24 | protected $driver; |
||
25 | |||
26 | /** |
||
27 | * @var \Ingenerator\RunSingle\CommandRunner $runner |
||
28 | */ |
||
29 | protected $runner; |
||
30 | |||
31 | /** |
||
32 | * @var LoggerInterface |
||
33 | */ |
||
34 | protected $logger; |
||
35 | |||
36 | /** |
||
37 | * @var LockHolder |
||
38 | */ |
||
39 | protected $lock_holder; |
||
40 | |||
41 | /** |
||
42 | * @param LockDriver $driver |
||
43 | * @param CommandRunner $runner |
||
44 | * @param LoggerInterface $logger |
||
45 | * @param LockHolder $lock_holder |
||
46 | */ |
||
47 | public function __construct( |
||
60 | |||
61 | /** |
||
62 | * @param string $task_name |
||
63 | * @param string $command |
||
64 | * @param string $timeout |
||
65 | * @param string $garbage_collect |
||
66 | * |
||
67 | * @return integer |
||
|
|||
68 | */ |
||
69 | public function execute($task_name, $command, $timeout, $garbage_collect) |
||
98 | |||
99 | } |
||
100 |
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.