| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class JsonMatrixParser extends MatrixParser |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $pathFile; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $jsonParsed; |
||
| 18 | |||
| 19 | public function __construct(string $path, PlacesCollector $placeCollector) |
||
| 20 | { |
||
| 21 | $this->pathFile = $path; |
||
| 22 | $this->jsonParsed = $this->readAndParse(); |
||
| 23 | |||
| 24 | parent::__construct($this->jsonParsed, $placeCollector); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public function readAndParse() |
||
| 36 | } |
||
| 37 | } |