Example #1
0
 /**
  * Create a new legend from a list of properties.
  *
  * @param string                  $name     The name of the legend.
  *
  * @param array|PropertyInterface $property A list of properties. Can be multiple arrays and arrays of arrays.
  *
  * @param PropertyInterface       $_        A list of properties. Can be multiple arrays and arrays of arrays.
  *
  * @return LegendInterface
  */
 public static function createLegend($name, $property = null, $_ = null)
 {
     $legend = new Legend();
     $legend->setName($name);
     $args = func_get_args();
     // Drop the name from argument list.
     array_shift($args);
     static::fillLegend($legend, $args);
     return $legend;
 }