CSSList
8 months ago
Comment
3 years ago
Parsing
2 years ago
Property
2 years ago
Rule
2 years ago
RuleSet
8 months ago
Value
2 years ago
OutputFormat.php
2 years ago
OutputFormatter.php
2 years ago
Parser.php
8 months ago
Renderable.php
4 years ago
Settings.php
4 years ago
index.php
3 years ago
Settings.php
37 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Sabberworm\CSS; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class Settings |
| 5 | { |
| 6 | public $bMultibyteSupport; |
| 7 | public $sDefaultCharset = 'utf-8'; |
| 8 | public $bLenientParsing = \true; |
| 9 | private function __construct() |
| 10 | { |
| 11 | $this->bMultibyteSupport = \extension_loaded('mbstring'); |
| 12 | } |
| 13 | public static function create() |
| 14 | { |
| 15 | return new Settings(); |
| 16 | } |
| 17 | public function withMultibyteSupport($bMultibyteSupport = \true) |
| 18 | { |
| 19 | $this->bMultibyteSupport = $bMultibyteSupport; |
| 20 | return $this; |
| 21 | } |
| 22 | public function withDefaultCharset($sDefaultCharset) |
| 23 | { |
| 24 | $this->sDefaultCharset = $sDefaultCharset; |
| 25 | return $this; |
| 26 | } |
| 27 | public function withLenientParsing($bLenientParsing = \true) |
| 28 | { |
| 29 | $this->bLenientParsing = $bLenientParsing; |
| 30 | return $this; |
| 31 | } |
| 32 | public function beStrict() |
| 33 | { |
| 34 | return $this->withLenientParsing(\false); |
| 35 | } |
| 36 | } |
| 37 |