1 | <?php |
||
21 | class ReportRenderer implements JobInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * Formater |
||
26 | * |
||
27 | * @var FormaterInterface |
||
28 | */ |
||
29 | private $formater; |
||
30 | |||
31 | /** |
||
32 | * Output |
||
33 | * |
||
34 | * @var \Symfony\Component\Console\Output\OutputInterface |
||
35 | */ |
||
36 | private $output; |
||
37 | |||
38 | /** |
||
39 | * Is enabled ? |
||
40 | * |
||
41 | * @var bool |
||
42 | */ |
||
43 | private $enabled = false; |
||
44 | |||
45 | /** |
||
46 | * Constructor |
||
47 | * |
||
48 | * @param boolean $enabled |
||
49 | * @param OutputInterface $output |
||
50 | * @param FormaterInterface $formater |
||
51 | */ |
||
52 | function __construct($enabled, OutputInterface $output, FormaterInterface $formater) |
||
58 | |||
59 | /** |
||
60 | * @inheritdoc |
||
61 | */ |
||
62 | public function execute(ResultCollection $collection, ResultCollection $aggregatedResults) { |
||
69 | |||
70 | } |
||
71 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.