| 1 | <?php |
||
| 7 | abstract class AbstractOutput |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * CLI tool. |
||
| 11 | * @var CLImate CLImate instance. |
||
| 12 | */ |
||
| 13 | protected $cli; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Output directory path. |
||
| 17 | * @var string directory path. |
||
| 18 | */ |
||
| 19 | protected $outputDirectory; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Set dependencies. |
||
| 23 | * @param CLImate $climate CLImate instance. |
||
| 24 | * @param string $outputDirectory directory where files will be created. |
||
| 25 | */ |
||
| 26 | public function __construct(CLImate $climate, $outputDirectory) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Outputs reduced analysis result. |
||
| 34 | * @param AnalysisResult $result reduced result data. |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | abstract public function result(AnalysisResult $result); |
||
| 38 | } |
||
| 39 |