| 1 | <?php |
||
| 9 | class JsonReporter |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \PHPSemVerChecker\Report\Report |
||
| 13 | */ |
||
| 14 | protected $report; |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $path; |
||
| 19 | /** |
||
| 20 | * @var \PHPSemVerChecker\Wrapper\Filesystem |
||
| 21 | */ |
||
| 22 | protected $filesystem; |
||
| 23 | /** |
||
| 24 | * @var \PHPSemVerChecker\Reporter\JsonReporter |
||
| 25 | */ |
||
| 26 | protected $baseJsonReporter; |
||
| 27 | private $beforeHash; |
||
| 28 | private $afterHash; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param \PHPSemVerChecker\Report\Report $report |
||
| 32 | * @param string $path |
||
| 33 | * @param string $beforeHash |
||
| 34 | * @param string $afterHash |
||
| 35 | * @param \PHPSemVerChecker\Wrapper\Filesystem $filesystem |
||
| 36 | */ |
||
| 37 | public function __construct(Report $report, $path, $beforeHash, $afterHash, Filesystem $filesystem = null) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function getOutput() |
||
| 59 | |||
| 60 | public function output() |
||
| 64 | } |
||
| 65 |