| 1 | <?php |
||
| 13 | class JSONLogFetcher |
||
| 14 | { |
||
| 15 | /** @var JSONLogFilename */ |
||
| 16 | private $fileName; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * JSONLogFetcher constructor. |
||
| 20 | * @param JSONLogFilename $fileName |
||
| 21 | */ |
||
| 22 | 1 | public function __construct(JSONLogFilename $fileName) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param ParaunitProcessInterface $process |
||
| 29 | * @return array |
||
| 30 | * @throws JSONLogNotFoundException |
||
| 31 | */ |
||
| 32 | 1 | public function fetch(ParaunitProcessInterface $process) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $jsonString The dirty output |
||
| 47 | * @return string The normalized log, as an array of JSON objects |
||
| 48 | */ |
||
| 49 | private static function cleanLog($jsonString) |
||
| 55 | } |
||
| 56 |