public function build($event) { if ($event === atoum\runner::runStop) { $coverage = $this->makeRootElement($this->score->getCoverage()); $this->string = json_encode($coverage); } return $this; }