Hal\Application\Formater\Details\Cli::getRow PHP Method

getRow() private method

Get formated row
private getRow ( Hal\Component\Bounds\Result\ResultInterface $bound, string $key, string $type, integer $round ) : string
$bound Hal\Component\Bounds\Result\ResultInterface
$key string
$type string
$round integer
return string
    private function getRow(ResultInterface $bound, $key, $type, $round)
    {
        $value = $bound->get($type, $key);
        $value = !is_null($value) ? round($bound->get($type, $key), $round) : '?';
        return sprintf('<%1$s>%2$s</%1$s>', $this->getStyle($type == 'average' ? $key : null, $value), $value);
    }