composer package updates
[openemr.git] / vendor / phenx / php-svg-lib / src / Svg / Tag / Group.php
blob542bfbdbdce23bf47a3128e704bc33d1a0a74a7f
1 <?php
2 /**
3 * @package php-svg-lib
4 * @link http://github.com/PhenX/php-svg-lib
5 * @author Fabien Ménager <fabien.menager@gmail.com>
6 * @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html
7 */
9 namespace Svg\Tag;
11 use Svg\Style;
13 class Group extends AbstractTag
15 protected function before($attributes)
17 $surface = $this->document->getSurface();
19 $surface->save();
21 $style = $this->makeStyle($attributes);
23 $this->setStyle($style);
24 $surface->setStyle($style);
26 $this->applyTransform($attributes);
29 protected function after()
31 $this->document->getSurface()->restore();