public static function buildLineWithCurrentFisicaOrIndicador(Cotation $cot, $bool) { $html = ""; $tdImg = self::buildImgTag($cot->getImage()) . "<a class='open-chart-window'>" . $cot->getName() . "</a>"; if ($bool) { $html .= self::buildTD($tdImg, "first-arabica"); } else { $html .= self::buildTD($tdImg, "first-indicador"); } $html .= self::buildTD($cot->getLast()); $class = $cot->getDiff() >= 0 ? "positive" : "negative"; $html .= self::buildTD($cot->getDiff(), $class); $html .= self::buildTD($cot->getClose()); return $html; }