Files
apache
wp-content
mu-plugins
plugins
activitypub
authLdap-2.4.2
companion-auto-update
disable-wordpress-core-update
gitium
gp-premium
menu-icons
simple-local-avatars
static-html-output-plugin
languages
plugin
CSSParser
CSSList
Comment
Comment.php
Commentable.php
Parsing
Property
Rule
RuleSet
Value
OutputFormat.php
Parser.php
Renderable.php
Settings.php
FTP
URL2
WP2Static
deployers
WP2Static.php
wp2static-wp-cli-commands.php
views
readme.txt
wp2static.css
wp2static.php
wp-mail-smtp
wp-piwik
index.php
themes
index.php
.dbsetup
.gitignore
htaccess
php.ini
2020-04-07 13:03:04 +00:00

2 lines
655 B
PHP

<?php
namespace Sabberworm\CSS\Comment; use Sabberworm\CSS\Renderable; class Comment implements Renderable { protected $iLineNo; protected $sComment; public function __construct($sComment = '', $iLineNo = 0) { $this->sComment = $sComment; $this->iLineNo = $iLineNo; } public function getComment() { return $this->sComment; } public function getLineNo() { return $this->iLineNo; } public function setComment($sComment) { $this->sComment = $sComment; } public function __toString() { return $this->render(new \Sabberworm\CSS\OutputFormat()); } public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) { return '/*' . $this->sComment . '*/'; } }