public function addLine(Am_Report_Line $line, Am_Report_Shift $shift = null) { if ($shift) { $line->setlabel(sprintf('%s (%s)', $line->getLabel(), $shift->getTitle())); $line->setKey($line->getKey() . $shift->getId()); } $this->lines[$line->getKey()] = $line; }
public function addLine(Am_Report_Line $line) { $this->lines[$line->getKey()] = $line; }