protected function computeInQueryParameters()
	{
		foreach ($this->openApiFileContent['paths'] as $path => $operations) {
			foreach ($operations as $httpMethod => $operation) {
				if (isset($operation['tags'])) {
					$extractedTags = [];
					foreach ($operation['tags'] as $tag) {
						$split = explode(':', $tag);
						if (count($split) == 2) {
							switch ($split[0]) {
								case 'Manager' :
									if (!isset($extractedTags['Managers'])) {
										$extractedTags['Managers'] = [];
									}
									$extractedTags['Managers'][] = $split[1];
									break;
								case 'Resource' :
									if (!isset($extractedTags['Resources'])) {
										$extractedTags['Resources'] = [];
									}
									$extractedTags['Resources'][] = $split[1];
									break;
							}
						}
					}

					foreach ($extractedTags as $tagType => $typeTags) {
						foreach ($typeTags as $typeTag) {
							switch ($tagType) {
								case 'Managers' :
									$this->managersData[ucfirst($typeTag)]['routes'][$operation['operationId']]['inQueryParameters'] = $this->getRouteOperationInQueryParameters($operation);
									break;

								case 'Resources' :
									$this->resourcesData[ucfirst($typeTag)]['routes'][$operation['operationId']]['inQueryParameters'] = $this->getRouteOperationInQueryParameters($operation, ucfirst($typeTag), $this->resourcesData[ucfirst($typeTag)]['properties']);
									break;
							}
						}
					}
				}
			}
		}
	}
protected function computeInQueryParameters()
	{
		foreach ($this->openApiFileContent['paths'] as $path => $operations) {
			foreach ($operations as $httpMethod => $operation) {
				if (isset($operation['tags'])) {
					$extractedTags = [];
					foreach ($operation['tags'] as $tag) {
						$split = explode(':', $tag);
						if (count($split) == 2) {
							switch ($split[0]) {
								case 'Manager' :
									if (!isset($extractedTags['Managers'])) {
										$extractedTags['Managers'] = [];
									}
									$extractedTags['Managers'][] = $split[1];
									break;
								case 'Resource' :
									if (!isset($extractedTags['Resources'])) {
										$extractedTags['Resources'] = [];
									}
									$extractedTags['Resources'][] = $split[1];
									break;
							}
						}
					}

					foreach ($extractedTags as $tagType => $typeTags) {
						foreach ($typeTags as $typeTag) {
							switch ($tagType) {
								case 'Managers' :
									$this->managersData[ucfirst($typeTag)]['routes'][$operation['operationId']]['inQueryParameters'] = $this->getRouteOperationInQueryParameters($operation);
									break;

								case 'Resources' :
									$this->resourcesData[ucfirst($typeTag)]['routes'][$operation['operationId']]['inQueryParameters'] = $this->getRouteOperationInQueryParameters($operation, ucfirst($typeTag), $this->resourcesData[ucfirst($typeTag)]['properties']);
									break;
							}
						}
					}
				}
			}
		}
	}
protected function computeInQueryParameters ( ) { foreach ( $ this -> openApiFileContent [ 'paths' ] as $ path => $ operations ) { foreach ( $ operations as $ httpMethod => $ operation ) { if ( isset ( $ operation [ 'tags' ] ) ) { $ extractedTags = [ ] ; foreach ( $ operation [ 'tags' ] as $ tag ) { $ split = explode ( ':' , $ tag ) ; if ( count ( $ split ) == 2 ) { switch ( $ split [ 0 ] ) { case 'Manager' : if ( ! isset ( $ extractedTags [ 'Managers' ] ) ) { $ extractedTags [ 'Managers' ] = [ ] ; } $ extractedTags [ 'Managers' ] [ ] = $ split [ 1 ] ; break ; case 'Resource' : if ( ! isset ( $ extractedTags [ 'Resources' ] ) ) { $ extractedTags [ 'Resources' ] = [ ] ; } $ extractedTags [ 'Resources' ] [ ] = $ split [ 1 ] ; break ; } } } foreach ( $ extractedTags as $ tagType => $ typeTags ) { foreach ( $ typeTags as $ typeTag ) { switch ( $ tagType ) { case 'Managers' : $ this -> managersData [ ucfirst ( $ typeTag ) ] [ 'routes' ] [ $ operation [ 'operationId' ] ] [ 'inQueryParameters' ] = $ this -> getRouteOperationInQueryParameters ( $ operation ) ; break ; case 'Resources' : $ this -> resourcesData [ ucfirst ( $ typeTag ) ] [ 'routes' ] [ $ operation [ 'operationId' ] ] [ 'inQueryParameters' ] = $ this -> getRouteOperationInQueryParameters ( $ operation , ucfirst ( $ typeTag ) , $ this -> resourcesData [ ucfirst ( $ typeTag ) ] [ 'properties' ] ) ; break ; } } } } } } }
Add in query parameters data based on resource properties
Add in query parameters data based on resource properties