@@ -25,27 +25,32 @@ abstract class Context implements
2525 protected function __construct (
2626 protected readonly mixed $ value ,
2727 protected readonly Direction $ direction ,
28+ protected readonly ConfigurationInterface $ config ,
2829 protected readonly TypeExtractorInterface $ extractor ,
2930 protected readonly TypeParserInterface $ parser ,
3031 protected readonly TypeRepositoryInterface $ types ,
31- protected readonly ConfigurationInterface $ config ,
3232 ) {}
3333
3434 /**
3535 * Creates new child context.
3636 */
37- public function enter (mixed $ value , EntryInterface $ entry , ?bool $ isStrictTypes = null ): self
38- {
37+ public function enter (
38+ mixed $ value ,
39+ EntryInterface $ entry ,
40+ ?bool $ strictTypes = null ,
41+ ?bool $ objectAsArray = null ,
42+ ): self {
3943 return new ChildContext (
4044 parent: $ this ,
4145 entry: $ entry ,
4246 value: $ value ,
4347 direction: $ this ->direction ,
48+ config: $ this ->config ,
4449 extractor: $ this ->extractor ,
4550 parser: $ this ->parser ,
4651 types: $ this ->types ,
47- config : $ this -> config ,
48- isStrictTypes : $ isStrictTypes ,
52+ overrideStrictTypes : $ strictTypes ,
53+ overrideObjectAsArray : $ objectAsArray ,
4954 );
5055 }
5156
@@ -54,24 +59,24 @@ public function getValue(): mixed
5459 return $ this ->value ;
5560 }
5661
57- public function isObjectsAsArrays (): bool
62+ public function isObjectAsArray (): bool
5863 {
59- return $ this ->config ->isObjectsAsArrays ();
64+ return $ this ->config ->isObjectAsArray ();
6065 }
6166
6267 public function isStrictTypesEnabled (): bool
6368 {
6469 return $ this ->config ->isStrictTypesEnabled ();
6570 }
6671
67- public function getLogger (): ?LoggerInterface
72+ public function findLogger (): ?LoggerInterface
6873 {
69- return $ this ->config ->getLogger ();
74+ return $ this ->config ->findLogger ();
7075 }
7176
72- public function getTracer (): ?TracerInterface
77+ public function findTracer (): ?TracerInterface
7378 {
74- return $ this ->config ->getTracer ();
79+ return $ this ->config ->findTracer ();
7580 }
7681
7782 /**
0 commit comments