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

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

Adds some coverage data to the collector.
public add ( array $coverage ) : array
$coverage array Some coverage data.
Результат array The current coverage data.
    public function add($coverage)
    {
        if (!$coverage) {
            return;
        }
        foreach ($coverage as $file => $data) {
            $this->addFile($file, $data);
        }
        return $this->_coverage;
    }