1 | <?php |
||
8 | abstract class Job implements JobInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $args; |
||
14 | |||
15 | /** |
||
16 | * @param array $args |
||
17 | */ |
||
18 | public function __construct(array $args = array()) |
||
22 | |||
23 | /** |
||
24 | * @return bool |
||
25 | */ |
||
26 | public function execute() |
||
30 | |||
31 | /** |
||
32 | * @return boolean |
||
33 | */ |
||
34 | abstract protected function run(); |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
|
|||
38 | */ |
||
39 | public function getJobName() |
||
43 | |||
44 | /** |
||
45 | * get job name |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getClassName() |
||
52 | |||
53 | /** |
||
54 | * get args |
||
55 | * @return array |
||
56 | */ |
||
57 | public function getArgs() |
||
61 | } |
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.