HTTPResponse::getContent PHP Méthode

getContent() public méthode

public getContent ( ) : string
Résultat string
    public function getContent()
    {
        return $this->responseBody;
    }

Usage Example

 /**
  * @brief	Efetua a chamada à operação da API
  * @return	stdClass
  */
 public function call()
 {
     $this->httpResponse = $this->httpConnection->execute('/json-api/' . $this->getOperationName());
     return json_decode($this->httpResponse->getContent());
 }