1010final class Configuration
1111{
1212 /**
13- * Default value for {@see $isObjectAsArray } option.
13+ * Default value for {@see $objectAsArray } option.
1414 */
1515 public const OBJECT_AS_ARRAY_DEFAULT_VALUE = true ;
1616
1717 /**
18- * Default value for {@see $isStrictTypes } option.
18+ * Default value for {@see $strictTypes } option.
1919 */
2020 public const STRICT_TYPES_DEFAULT_VALUE = true ;
2121
@@ -25,12 +25,12 @@ public function __construct(
2525 * associative arrays, otherwise anonymous {@see object} will be
2626 * returned.
2727 */
28- private readonly ?bool $ isObjectAsArray = null ,
28+ private readonly ?bool $ objectAsArray = null ,
2929 /**
3030 * If this option contains {@see true}, then strict types will
3131 * be enabled.
3232 */
33- private readonly ?bool $ isStrictTypes = null ,
33+ private readonly ?bool $ strictTypes = null ,
3434 /**
3535 * Enable or disable type parsing logs
3636 */
@@ -90,8 +90,8 @@ public function __construct(
9090 public function withObjectAsArray (?bool $ enabled = null ): self
9191 {
9292 return new self (
93- isObjectAsArray : $ enabled ,
94- isStrictTypes : $ this ->isStrictTypes ,
93+ objectAsArray : $ enabled ,
94+ strictTypes : $ this ->strictTypes ,
9595 logTypeParse: $ this ->logTypeParse ,
9696 logTypeFind: $ this ->logTypeFind ,
9797 logTypeMatch: $ this ->logTypeMatch ,
@@ -113,7 +113,7 @@ public function withObjectAsArray(?bool $enabled = null): self
113113 */
114114 public function isObjectAsArray (): bool
115115 {
116- return $ this ->isObjectAsArray
116+ return $ this ->objectAsArray
117117 ?? self ::OBJECT_AS_ARRAY_DEFAULT_VALUE ;
118118 }
119119
@@ -124,7 +124,7 @@ public function isObjectAsArray(): bool
124124 */
125125 public function isObjectAsArrayOptionDefined (): bool
126126 {
127- return $ this ->isObjectAsArray !== null ;
127+ return $ this ->objectAsArray !== null ;
128128 }
129129
130130 /**
@@ -137,8 +137,8 @@ public function isObjectAsArrayOptionDefined(): bool
137137 public function withStrictTypes (?bool $ enabled = null ): self
138138 {
139139 return new self (
140- isObjectAsArray : $ this ->isObjectAsArray ,
141- isStrictTypes : $ enabled ,
140+ objectAsArray : $ this ->objectAsArray ,
141+ strictTypes : $ enabled ,
142142 logTypeParse: $ this ->logTypeParse ,
143143 logTypeFind: $ this ->logTypeFind ,
144144 logTypeMatch: $ this ->logTypeMatch ,
@@ -161,7 +161,7 @@ public function withStrictTypes(?bool $enabled = null): self
161161 */
162162 public function isStrictTypesEnabled (): bool
163163 {
164- return $ this ->isStrictTypes
164+ return $ this ->strictTypes
165165 ?? self ::STRICT_TYPES_DEFAULT_VALUE ;
166166 }
167167
@@ -172,7 +172,7 @@ public function isStrictTypesEnabled(): bool
172172 */
173173 public function isStrictTypesOptionDefined (): bool
174174 {
175- return $ this ->isStrictTypes !== null ;
175+ return $ this ->strictTypes !== null ;
176176 }
177177
178178 /**
0 commit comments