@@ -31,7 +31,8 @@ public function __construct(
3131 VersionRange $ versionRange = null ,
3232 array $ groups = [],
3333 PropertyAccessor $ accessor = null ,
34- array $ customInformation = []
34+ array $ customInformation = [],
35+ ?int $ maxDepth = null
3536 ) {
3637 parent ::__construct ($ name , $ readOnly , $ public );
3738 $ this ->serializedName = $ serializedName ;
@@ -44,6 +45,8 @@ public function __construct(
4445 foreach ($ customInformation as $ key => $ value ) {
4546 $ this ->setCustomInformation ((string ) $ key , $ value );
4647 }
48+
49+ $ this ->setMaxDepth ($ maxDepth );
4750 }
4851
4952 public function __toString (): string
@@ -62,7 +65,8 @@ public static function fromRawProperty(string $serializedName, PropertyVariation
6265 $ property ->getVersionRange (),
6366 $ property ->getGroups (),
6467 $ property ->getAccessor (),
65- $ property ->getAllCustomInformation ()
68+ $ property ->getAllCustomInformation (),
69+ $ property ->getMaxDepth ()
6670 );
6771 }
6872
@@ -76,6 +80,11 @@ public function getSerializedName(): string
7680 return $ this ->serializedName ;
7781 }
7882
83+ public function getMaxDepth (): ?int
84+ {
85+ return parent ::getMaxDepth ();
86+ }
87+
7988 public function jsonSerialize (): array
8089 {
8190 return array_merge (
0 commit comments