Exemplo n.º 1
0
 /**
  * Get formated row
  *
  * @param ResultInterface $bound
  * @param string $key
  * @param string $type
  * @param integer $round
  * @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);
 }