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()
3838 $ this ->bMultibyteSupport = extension_loaded ('mbstring ' );
3939 }
4040
41+ /**
42+ * @return self new instance
43+ */
4144 public static function create ()
4245 {
4346 return new Settings ();
4447 }
4548
49+ /**
50+ * @param bool $bMultibyteSupport
51+ *
52+ * @return self fluent interface
53+ */
4654 public function withMultibyteSupport ($ bMultibyteSupport = true )
4755 {
4856 $ this ->bMultibyteSupport = $ bMultibyteSupport ;
4957 return $ this ;
5058 }
5159
60+ /**
61+ * @param string $sDefaultCharset
62+ *
63+ * @return self fluent interface
64+ */
5265 public function withDefaultCharset ($ sDefaultCharset )
5366 {
5467 $ this ->sDefaultCharset = $ sDefaultCharset ;
5568 return $ this ;
5669 }
5770
71+ /**
72+ * @param bool $bLenientParsing
73+ *
74+ * @return self fluent interface
75+ */
5876 public function withLenientParsing ($ bLenientParsing = true )
5977 {
6078 $ this ->bLenientParsing = $ bLenientParsing ;
6179 return $ this ;
6280 }
6381
82+ /**
83+ * @return self fluent interface
84+ */
6485 public function beStrict ()
6586 {
6687 return $ this ->withLenientParsing (false );
You can’t perform that action at this time.
0 commit comments