Kahlan\Reporter\Coverage\Collector::parse PHP Метод

parse() публичный Метод

Retruns & cache the tree structure of a file.
public parse ( string $file )
$file string the file path to use for building the tree structure.
    public function parse($file)
    {
        if (isset($this->_tree[$file])) {
            return $this->_tree[$file];
        }
        $parser = $this->_classes['parser'];
        return $this->_tree[$file] = $parser::parse(file_get_contents($file), ['lines' => true]);
    }