| @@ -11,8 +11,9 @@ | ||
| 11 | 11 | private $output; |
| 12 | 12 | private $errors; |
| 13 | 13 | private $staticContextParams = []; |
| 14 | 14 | private $contextParams; |
| 15 | + private $operationContextParams = []; | |
| 15 | 16 | public function __construct(array $definition, ShapeMap $shapeMap) |
| 16 | 17 | { |
| 17 | 18 | $definition['type'] = 'structure'; |
| 18 | 19 | if (!isset($definition['http']['method'])) { |
| @@ -23,8 +24,11 @@ | ||
| 23 | 24 | } |
| 24 | 25 | if (isset($definition['staticContextParams'])) { |
| 25 | 26 | $this->staticContextParams = $definition['staticContextParams']; |
| 26 | 27 | } |
| 28 | + if (isset($definition['operationContextParams'])) { | |
| 29 | + $this->operationContextParams = $definition['operationContextParams']; | |
| 30 | + } | |
| 27 | 31 | parent::__construct($definition, $shapeMap); |
| 28 | 32 | $this->contextParams = $this->setContextParams(); |
| 29 | 33 | } |
| 30 | 34 | /** |
| @@ -108,8 +112,18 @@ | ||
| 108 | 112 | */ |
| 109 | 113 | public function getContextParams() |
| 110 | 114 | { |
| 111 | 115 | return $this->contextParams; |
| 116 | + } | |
| 117 | + /** | |
| 118 | + * Gets definition of modeled dynamic values used | |
| 119 | + * for endpoint resolution | |
| 120 | + * | |
| 121 | + * @return array | |
| 122 | + */ | |
| 123 | + public function getOperationContextParams() : array | |
| 124 | + { | |
| 125 | + return $this->operationContextParams; | |
| 112 | 126 | } |
| 113 | 127 | private function setContextParams() |
| 114 | 128 | { |
| 115 | 129 | $members = $this->getInput()->getMembers(); |