You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
748 B

<?php namespace RedeyeVentures\GeoPattern\SVGElements;
class Group extends Base
{
protected $tag = 'g';
protected $items;
function __construct($items=array(), $args=array())
{
$this->items = $items;
$this->args = $args;
}
function addItem($item)
{
$this->items[] = $item;
return $this;
}
function setArgs($args)
{
$this->args = $args;
return $this;
}
function getString()
{
$svgString = '';
$svgString .= "<{$this->tag} {$this->argsToString($this->args)}>";
foreach ($this->items as $item)
{
$svgString .= $item;
}
$svgString .= "</{$this->tag}>";
return $svgString;
}
}