private function collectFunction(array $start, array $end, array $declaration, int $coverage = 0) : void
    {
        $this->fileCoverage['fnMap'][] = [
            'name' => '(anonymous_' . $this->funcCount . ')',
            'decl' => $declaration,
            'loc' => ['start' => $start, 'end' => $end],
        ];

        $this->fileCoverage['f'][] = $coverage;

        // Collect statements as well, one for entire function, one just for function declaration
        $this->collectStatement($start, $end, $coverage);
        $this->collectStatement($declaration['start'], $declaration['end'], $coverage);

        ++$this->funcCount;
    }
private function collectFunction(array $start, array $end, array $declaration, int $coverage = 0) : void
    {
        $this->fileCoverage['fnMap'][] = [
            'name' => '(anonymous_' . $this->funcCount . ')',
            'decl' => $declaration,
            'loc' => ['start' => $start, 'end' => $end],
        ];

        $this->fileCoverage['f'][] = $coverage;

        // Collect statements as well, one for entire function, one just for function declaration
        $this->collectStatement($start, $end, $coverage);
        $this->collectStatement($declaration['start'], $declaration['end'], $coverage);

        ++$this->funcCount;
    }
private function collectFunction ( array $ start , array $ end , array $ declaration , int $ coverage = 0 ) : void { $ this -> fileCoverage [ 'fnMap' ] [ ] = [ 'name' => '(anonymous_' . $ this -> funcCount . ')' , 'decl' => $ declaration , 'loc' => [ 'start' => $ start , 'end' => $ end ] , ] ; $ this -> fileCoverage [ 'f' ] [ ] = $ coverage ; // Collect statements as well, one for entire function, one just for function declaration $ this -> collectStatement ( $ start , $ end , $ coverage ) ; $ this -> collectStatement ( $ declaration [ 'start' ] , $ declaration [ 'end' ] , $ coverage ) ; ++ $ this -> funcCount ; }
Collects and stores a function's location information as well as any passed in coverage counts

@param array $start
@param array $end
@param array $declaration
@param int   $coverage
Collects and stores a function s location information as well as any passed in coverage counts