File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66
77final class XmlTypeDecoder implements TypeDecoderInterface
88{
9- private JsonxTypeDecoder $ jsonxTypeDecoder ;
9+ private readonly JsonxTypeDecoder $ jsonxTypeDecoder ;
1010
1111 public function __construct ()
1212 {
Original file line number Diff line number Diff line change 66
77final class JsonTypeEncoder implements TypeEncoderInterface
88{
9- public function __construct (private bool $ prettyPrint = false ) {}
9+ public function __construct (private readonly bool $ prettyPrint = false ) {}
1010
1111 public function getContentType (): string
1212 {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ final class JsonxTypeEncoder implements TypeEncoderInterface
1616 public const string DATATYPE_NUMBER = 'number ' ;
1717 public const string DATATYPE_NULL = 'null ' ;
1818
19- public function __construct (private bool $ prettyPrint = false ) {}
19+ public function __construct (private readonly bool $ prettyPrint = false ) {}
2020
2121 public function getContentType (): string
2222 {
Original file line number Diff line number Diff line change 66
77final class XmlTypeEncoder implements TypeEncoderInterface
88{
9- private JsonxTypeEncoder $ jsonxTypeEncoder ;
9+ private readonly JsonxTypeEncoder $ jsonxTypeEncoder ;
1010
1111 public function __construct (bool $ prettyPrint = false )
1212 {
You can’t perform that action at this time.
0 commit comments