PhpBench\Report\Generator\Table\Row::newInstance PHP Method

newInstance() public method

Return a new instance of row using the given data but keeping the metadata for this row.
public newInstance ( array $array ) : Row
$array array
return Row
    public function newInstance(array $array)
    {
        $duplicate = new self($array);
        $duplicate->setFormatParams($this->getFormatParams());
        return $duplicate;
    }