| Methods | 
			
	
			
				
					
	public
					
					
				
			 | 
			
				__construct(
	ClientInterface $client = null,
	Configuration $config = null,
	HeaderSelector $selector = null,
	int $hostIndex = 0,
)
	
							Parameters
							
									
										| $hostIndex   | 
										(Optional) host index to select the list of hosts if defined in the OpenAPI spec 
 | 
									 
							 
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				setHostIndex(int $hostIndex): void
	
		Set the host index
	 
	
	
							Parameters
							
									
										| $hostIndex   | 
										Host index (required) 
 | 
									 
							 
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				getHostIndex(): int
	
		Get the host index
	 
	
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				getConfig(): Configuration
	
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				addPet(Pet $pet): Pet
	
		Operation addPet
	 
	
	Operation addPet 
Add a new pet to the store 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				addPetWithHttpInfo(Pet $pet): array
	
		Operation addPetWithHttpInfo
	 
	
	Operation addPetWithHttpInfo 
Add a new pet to the store 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Returns
							of \Ally\PetStore\Schema\Pet, HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				addPetAsync(Pet $pet): PromiseInterface
	
		Operation addPetAsync
	 
	
	Operation addPetAsync 
Add a new pet to the store 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				addPetAsyncWithHttpInfo(Pet $pet): PromiseInterface
	
		Operation addPetAsyncWithHttpInfo
	 
	
	Operation addPetAsyncWithHttpInfo 
Add a new pet to the store 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				addPetRequest(Pet $pet): Request
	
		Create request for operation 'addPet'
	 
	
	Create request for operation 'addPet' 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				deletePet(int $pet_id, string $api_key = null): void
	
		Operation deletePet
	 
	
	Operation deletePet 
Deletes a pet 
 
							Parameters
							
									
										| $pet_id   | 
										Pet id to delete (required) 
 | 
									 
									
										| $api_key   | 
										api_key (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				deletePetWithHttpInfo(int $pet_id, string $api_key = null): array
	
		Operation deletePetWithHttpInfo
	 
	
	Operation deletePetWithHttpInfo 
Deletes a pet 
 
							Parameters
							
									
										| $pet_id   | 
										Pet id to delete (required) 
 | 
									 
									
										| $api_key   | 
										(optional) 
 | 
									 
							 
							Returns
							of null, HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				deletePetAsync(int $pet_id, string $api_key = null): PromiseInterface
	
		Operation deletePetAsync
	 
	
	Operation deletePetAsync 
Deletes a pet 
 
							Parameters
							
									
										| $pet_id   | 
										Pet id to delete (required) 
 | 
									 
									
										| $api_key   | 
										(optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				deletePetAsyncWithHttpInfo(int $pet_id, string $api_key = null): PromiseInterface
	
		Operation deletePetAsyncWithHttpInfo
	 
	
	Operation deletePetAsyncWithHttpInfo 
Deletes a pet 
 
							Parameters
							
									
										| $pet_id   | 
										Pet id to delete (required) 
 | 
									 
									
										| $api_key   | 
										(optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				deletePetRequest(int $pet_id, string $api_key = null): Request
	
		Create request for operation 'deletePet'
	 
	
	Create request for operation 'deletePet' 
 
							Parameters
							
									
										| $pet_id   | 
										Pet id to delete (required) 
 | 
									 
									
										| $api_key   | 
										(optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByStatus(string[] $status): Pet[]
	
		Operation findPetsByStatus
	 
	
	Operation findPetsByStatus 
Finds Pets by status 
 
							Parameters
							
									
										| $status   | 
										Status values that need to be considered for filter (required) (deprecated) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByStatusWithHttpInfo(string[] $status): array
	
		Operation findPetsByStatusWithHttpInfo
	 
	
	Operation findPetsByStatusWithHttpInfo 
Finds Pets by status 
 
							Parameters
							
									
										| $status   | 
										Status values that need to be considered for filter (required) (deprecated) 
 | 
									 
							 
							Returns
							of \Ally\PetStore\Schema\Pet[], HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByStatusAsync(string[] $status): PromiseInterface
	
		Operation findPetsByStatusAsync
	 
	
	Operation findPetsByStatusAsync 
Finds Pets by status 
 
							Parameters
							
									
										| $status   | 
										Status values that need to be considered for filter (required) (deprecated) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByStatusAsyncWithHttpInfo(string[] $status): PromiseInterface
	
		Operation findPetsByStatusAsyncWithHttpInfo
	 
	
	Operation findPetsByStatusAsyncWithHttpInfo 
Finds Pets by status 
 
							Parameters
							
									
										| $status   | 
										Status values that need to be considered for filter (required) (deprecated) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByStatusRequest(string[] $status): Request
	
		Create request for operation 'findPetsByStatus'
	 
	
	Create request for operation 'findPetsByStatus' 
 
							Parameters
							
									
										| $status   | 
										Status values that need to be considered for filter (required) (deprecated) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByTags(string[] $tags): Pet[]
	
		Operation findPetsByTags
	 
	
	Operation findPetsByTags 
Finds Pets by tags 
 
							Parameters
							
									
										| $tags   | 
										Tags to filter by (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByTagsWithHttpInfo(string[] $tags): array
	
		Operation findPetsByTagsWithHttpInfo
	 
	
	Operation findPetsByTagsWithHttpInfo 
Finds Pets by tags 
 
							Parameters
							
									
										| $tags   | 
										Tags to filter by (required) 
 | 
									 
							 
							Returns
							of \Ally\PetStore\Schema\Pet[], HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByTagsAsync(string[] $tags): PromiseInterface
	
		Operation findPetsByTagsAsync
	 
	
	Operation findPetsByTagsAsync 
Finds Pets by tags 
 
							Parameters
							
									
										| $tags   | 
										Tags to filter by (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByTagsAsyncWithHttpInfo(string[] $tags): PromiseInterface
	
		Operation findPetsByTagsAsyncWithHttpInfo
	 
	
	Operation findPetsByTagsAsyncWithHttpInfo 
Finds Pets by tags 
 
							Parameters
							
									
										| $tags   | 
										Tags to filter by (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findPetsByTagsRequest(string[] $tags): Request
	
		Create request for operation 'findPetsByTags'
	 
	
	Create request for operation 'findPetsByTags' 
 
							Parameters
							
									
										| $tags   | 
										Tags to filter by (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				getPetById(int $pet_id): Pet
	
		Operation getPetById
	 
	
	Operation getPetById 
Find pet by ID 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to return (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				getPetByIdWithHttpInfo(int $pet_id): array
	
		Operation getPetByIdWithHttpInfo
	 
	
	Operation getPetByIdWithHttpInfo 
Find pet by ID 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to return (required) 
 | 
									 
							 
							Returns
							of \Ally\PetStore\Schema\Pet, HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				getPetByIdAsync(int $pet_id): PromiseInterface
	
		Operation getPetByIdAsync
	 
	
	Operation getPetByIdAsync 
Find pet by ID 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to return (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				getPetByIdAsyncWithHttpInfo(int $pet_id): PromiseInterface
	
		Operation getPetByIdAsyncWithHttpInfo
	 
	
	Operation getPetByIdAsyncWithHttpInfo 
Find pet by ID 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to return (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				getPetByIdRequest(int $pet_id): Request
	
		Create request for operation 'getPetById'
	 
	
	Create request for operation 'getPetById' 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to return (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePet(Pet $pet): Pet
	
		Operation updatePet
	 
	
	Operation updatePet 
Update an existing pet 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetWithHttpInfo(Pet $pet): array
	
		Operation updatePetWithHttpInfo
	 
	
	Operation updatePetWithHttpInfo 
Update an existing pet 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Returns
							of \Ally\PetStore\Schema\Pet, HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetAsync(Pet $pet): PromiseInterface
	
		Operation updatePetAsync
	 
	
	Operation updatePetAsync 
Update an existing pet 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetAsyncWithHttpInfo(Pet $pet): PromiseInterface
	
		Operation updatePetAsyncWithHttpInfo
	 
	
	Operation updatePetAsyncWithHttpInfo 
Update an existing pet 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetRequest(Pet $pet): Request
	
		Create request for operation 'updatePet'
	 
	
	Create request for operation 'updatePet' 
 
							Parameters
							
									
										| $pet   | 
										Pet object that needs to be added to the store (required) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetWithForm(int $pet_id, string $name = null, string $status = null): void
	
		Operation updatePetWithForm
	 
	
	Operation updatePetWithForm 
Updates a pet in the store with form data 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet that needs to be updated (required) 
 | 
									 
									
										| $name   | 
										Updated name of the pet (optional) 
 | 
									 
									
										| $status   | 
										Updated status of the pet (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetWithFormWithHttpInfo(int $pet_id, string $name = null, string $status = null): array
	
		Operation updatePetWithFormWithHttpInfo
	 
	
	Operation updatePetWithFormWithHttpInfo 
Updates a pet in the store with form data 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet that needs to be updated (required) 
 | 
									 
									
										| $name   | 
										Updated name of the pet (optional) 
 | 
									 
									
										| $status   | 
										Updated status of the pet (optional) 
 | 
									 
							 
							Returns
							of null, HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetWithFormAsync(int $pet_id, string $name = null, string $status = null): PromiseInterface
	
		Operation updatePetWithFormAsync
	 
	
	Operation updatePetWithFormAsync 
Updates a pet in the store with form data 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet that needs to be updated (required) 
 | 
									 
									
										| $name   | 
										Updated name of the pet (optional) 
 | 
									 
									
										| $status   | 
										Updated status of the pet (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetWithFormAsyncWithHttpInfo(int $pet_id, string $name = null, string $status = null): PromiseInterface
	
		Operation updatePetWithFormAsyncWithHttpInfo
	 
	
	Operation updatePetWithFormAsyncWithHttpInfo 
Updates a pet in the store with form data 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet that needs to be updated (required) 
 | 
									 
									
										| $name   | 
										Updated name of the pet (optional) 
 | 
									 
									
										| $status   | 
										Updated status of the pet (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				updatePetWithFormRequest(int $pet_id, string $name = null, string $status = null): Request
	
		Create request for operation 'updatePetWithForm'
	 
	
	Create request for operation 'updatePetWithForm' 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet that needs to be updated (required) 
 | 
									 
									
										| $name   | 
										Updated name of the pet (optional) 
 | 
									 
									
										| $status   | 
										Updated status of the pet (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				uploadFile(int $pet_id, string $additional_metadata = null, SplFileObject $file = null): ApiResponse
	
		Operation uploadFile
	 
	
	Operation uploadFile 
uploads an image 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to update (required) 
 | 
									 
									
										| $additional_metadata   | 
										Additional data to pass to server (optional) 
 | 
									 
									
										| $file   | 
										file to upload (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				uploadFileWithHttpInfo(int $pet_id, string $additional_metadata = null, SplFileObject $file = null): array
	
		Operation uploadFileWithHttpInfo
	 
	
	Operation uploadFileWithHttpInfo 
uploads an image 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to update (required) 
 | 
									 
									
										| $additional_metadata   | 
										Additional data to pass to server (optional) 
 | 
									 
									
										| $file   | 
										file to upload (optional) 
 | 
									 
							 
							Returns
							of \Ally\PetStore\Schema\ApiResponse, HTTP status code, HTTP response headers (array of strings) 
 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				uploadFileAsync(int $pet_id, string $additional_metadata = null, SplFileObject $file = null): PromiseInterface
	
		Operation uploadFileAsync
	 
	
	Operation uploadFileAsync 
uploads an image 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to update (required) 
 | 
									 
									
										| $additional_metadata   | 
										Additional data to pass to server (optional) 
 | 
									 
									
										| $file   | 
										file to upload (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				uploadFileAsyncWithHttpInfo(
	int $pet_id,
	string $additional_metadata = null,
	SplFileObject $file = null,
): PromiseInterface
	
		Operation uploadFileAsyncWithHttpInfo
	 
	
	Operation uploadFileAsyncWithHttpInfo 
uploads an image 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to update (required) 
 | 
									 
									
										| $additional_metadata   | 
										Additional data to pass to server (optional) 
 | 
									 
									
										| $file   | 
										file to upload (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				uploadFileRequest(int $pet_id, string $additional_metadata = null, SplFileObject $file = null): Request
	
		Create request for operation 'uploadFile'
	 
	
	Create request for operation 'uploadFile' 
 
							Parameters
							
									
										| $pet_id   | 
										ID of pet to update (required) 
 | 
									 
									
										| $additional_metadata   | 
										Additional data to pass to server (optional) 
 | 
									 
									
										| $file   | 
										file to upload (optional) 
 | 
									 
							 
							Throws
							
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	protected
					
					
				
			 | 
			
				createHttpClientOption(): array
	
		Create http client option
	 
	
	Create http client option 
 
							Returns
							
							Throws
							
	 
			 | 
		
			#
		 |