blob: 309de01ef485679307746833b26babda32ecac4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* @package php-svg-lib
* @link http://github.com/PhenX/php-svg-lib
* @author Fabien Ménager <fabien.menager@gmail.com>
* @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html
*/
namespace Svg\Tag;
use Sabberworm\CSS;
class StyleTag extends AbstractTag
{
protected $text = "";
public function end()
{
$parser = new CSS\Parser($this->text);
$this->document->appendStyleSheet($parser->parse());
}
public function appendText($text)
{
$this->text .= $text;
}
}
|