for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace nstdio\svg\container;
use nstdio\svg\attributes\Transformable;
use nstdio\svg\ElementInterface;
use nstdio\svg\traits\TransformTrait;
use nstdio\svg\util\Transform;
use nstdio\svg\util\TransformInterface;
/**
* Class G
*
* @property string transform
* @package svg\container
* @author Edgar Asatryan <[email protected]>
*/
class G extends Container implements Transformable, TransformInterface
{
use TransformTrait;
public function __construct(ElementInterface $parent)
parent::__construct($parent);
$this->transformImpl = Transform::newInstance($this->getTransformAttribute());
}
* @inheritdoc
public function getTransformAttribute()
return $this->transform;
public static function create(ElementInterface $parent)
return new G($parent);
public function getName()
return 'g';
public function setTransformAttribute($transformList)
$this->transform = $transformList;