File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -38,29 +38,50 @@ private function __construct()
38
38
$ this ->bMultibyteSupport = extension_loaded ('mbstring ' );
39
39
}
40
40
41
+ /**
42
+ * @return self new instance
43
+ */
41
44
public static function create ()
42
45
{
43
46
return new Settings ();
44
47
}
45
48
49
+ /**
50
+ * @param bool $bMultibyteSupport
51
+ *
52
+ * @return self fluent interface
53
+ */
46
54
public function withMultibyteSupport ($ bMultibyteSupport = true )
47
55
{
48
56
$ this ->bMultibyteSupport = $ bMultibyteSupport ;
49
57
return $ this ;
50
58
}
51
59
60
+ /**
61
+ * @param string $sDefaultCharset
62
+ *
63
+ * @return self fluent interface
64
+ */
52
65
public function withDefaultCharset ($ sDefaultCharset )
53
66
{
54
67
$ this ->sDefaultCharset = $ sDefaultCharset ;
55
68
return $ this ;
56
69
}
57
70
71
+ /**
72
+ * @param bool $bLenientParsing
73
+ *
74
+ * @return self fluent interface
75
+ */
58
76
public function withLenientParsing ($ bLenientParsing = true )
59
77
{
60
78
$ this ->bLenientParsing = $ bLenientParsing ;
61
79
return $ this ;
62
80
}
63
81
82
+ /**
83
+ * @return self fluent interface
84
+ */
64
85
public function beStrict ()
65
86
{
66
87
return $ this ->withLenientParsing (false );
You can’t perform that action at this time.
0 commit comments