DrawLegendEntry() protected method

Return box for legend
protected DrawLegendEntry ( $set, $x, $y, $w, $h )
 /**
  * Return box or line for legend
  */
 protected function DrawLegendEntry($set, $x, $y, $w, $h)
 {
     if (isset($this->bar_styles[$set])) {
         return parent::DrawLegendEntry($set, $x, $y, $w, $h);
     }
     return $this->linegraph->DrawLegendEntry($set, $x, $y, $w, $h);
 }
 /**
  * Return box or line for legend
  */
 public function DrawLegendEntry($x, $y, $w, $h, $entry)
 {
     if (isset($entry->style['line_style'])) {
         return $this->linegraph->DrawLegendEntry($x, $y, $w, $h, $entry);
     }
     return parent::DrawLegendEntry($x, $y, $w, $h, $entry);
 }