prepareRowAsSvg() публичный Метод

Prepares and returns the code related to a row in the GIS dataset as SVG.
public prepareRowAsSvg ( string $spatial, string $label, string $fill_color, array $scale_data ) : string
$spatial string GIS POLYGON object
$label string Label for the GIS POLYGON object
$fill_color string Color for the GIS POLYGON object
$scale_data array Array containing data related to scaling
Результат string the code related to a row in the GIS dataset
Пример #1
0
 /**
  * test case for prepareRowAsSvg() method
  *
  * @param string $spatial    GIS POLYGON object
  * @param string $label      label for the GIS POLYGON object
  * @param string $fill_color color for the GIS POLYGON object
  * @param array  $scale_data array containing data related to scaling
  * @param string $output     expected output
  *
  * @return void
  * @dataProvider providerForPrepareRowAsSvg
  */
 public function testPrepareRowAsSvg(
     $spatial, $label, $fill_color, $scale_data, $output
 ) {
     $string = $this->object->prepareRowAsSvg(
         $spatial, $label, $fill_color, $scale_data
     );
     $this->assertEquals(1, preg_match($output, $string));
 }