Skip to content

Commit b8439a4

Browse files
committed
Add type annotations for Settings
1 parent 7de0f36 commit b8439a4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Settings.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)