/usr/share/php/Sabberworm/CSS/Property/Charset.php is in php-horde-css-parser 1.0.4-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 | <?php
namespace Sabberworm\CSS\Property;
/**
* Class representing an @charset rule.
* The following restrictions apply:
* • May not be found in any CSSList other than the Document.
* • May only appear at the very top of a Document’s contents.
* • Must not appear more than once.
*/
class Charset implements AtRule {
private $sCharset;
public function __construct($sCharset) {
$this->sCharset = $sCharset;
}
public function setCharset($sCharset) {
$this->sCharset = $sCharset;
}
public function getCharset() {
return $this->sCharset;
}
public function __toString() {
return "@charset {$this->sCharset->__toString()};";
}
public function atRuleName() {
return 'charset';
}
public function atRuleArgs() {
return $this->sCharset;
}
}
|