PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/s3/Aws/Api/StructureShape.php +25 -0 1.2.11 → 1.4.2 View file →
@@ -57,8 +57,33 @@
57 57 throw new \InvalidArgumentException('Unknown member ' . $name);
58 58 }
59 59 return $members[$name];
60 60 }
61 + /**
62 + * Used to look up the shape's original definition.
63 + * ShapeMap::resolve() merges properties from both
64 + * member and target shape definitions, causing certain
65 + * properties like `locationName` to be overwritten.
66 + *
67 + * @return ShapeMap
68 + * @internal This method is for internal use only and should not be used
69 + * by external code. It may be changed or removed without notice.
70 + */
71 + public function getShapeMap() : ShapeMap
72 + {
73 + return $this->shapeMap;
74 + }
75 + /**
76 + * Used to look up a shape's original definition.
77 + *
78 + * @param string $name
79 + *
80 + * @return array|null
81 + */
82 + public function getOriginalDefinition(string $name) : ?array
83 + {
84 + return $this->shapeMap[$name] ?? null;
85 + }
61 86 private function generateMembersHash()
62 87 {
63 88 $this->members = [];
64 89 foreach ($this->definition['members'] as $name => $definition) {