| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function getArrayRepresentation () : array |
||
| 31 | { |
||
| 32 | $result = parent::getArrayRepresentation(); |
||
| 33 | |||
| 34 | if ( $this instanceof CsvExtractor || $this instanceof JsonExtractor ) { |
||
| 35 | $fileInput = $this->getInput(); |
||
| 36 | |||
| 37 | $result["input"] = [ "class" => get_class( $fileInput ), "location" => $fileInput->getInput() ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | return $result; |
||
| 41 | } |
||
| 43 |