MessagePack\Tests\Perf\Writer\TableWriter::writeSummary PHP Method

writeSummary() private method

private writeSummary ( $title, $name, Closure $formatter = null )
$formatter Closure
    private function writeSummary($title, $name, \Closure $formatter = null)
    {
        $cells = [$title];
        foreach ($this->summary[$name] as $value) {
            $cells[] = $formatter ? $formatter($value) : $value;
        }
        $this->writeRow($cells);
    }