Api/Method/TallantoCreateContactMethod.php
public function getResult()
  {
    $arrayData = $this->decode(
      $this->getResponse()
        ->getBody()
        ->getContents()
    );
    if (is_array($arrayData) && count($arrayData)) {
      $singleItem = reset($arrayData);
    } else {
      throw new ResponseDecodeException('Response has bad format.');
    }

    return new Contact($singleItem);
  }
public function getResult()
  {
    $arrayData = $this->decode(
      $this->getResponse()
        ->getBody()
        ->getContents()
    );
    if (is_array($arrayData) && count($arrayData)) {
      $singleItem = reset($arrayData);
    } else {
      throw new ResponseDecodeException('Response has bad format.');
    }

    return new Contact($singleItem);
  }
public function getResult ( ) { $ arrayData = $ this -> decode ( $ this -> getResponse ( ) -> getBody ( ) -> getContents ( ) ) ; if ( is_array ( $ arrayData ) && count ( $ arrayData ) ) { $ singleItem = reset ( $ arrayData ) ; } else { throw new ResponseDecodeException ( 'Response has bad format.' ) ; } return new Contact ( $ singleItem ) ; }
Returns useful result of operation.

@return \Tallanto\Api\Entity\Contact
@throws \Tallanto\ClientApiBundle\Exception\ResponseDecodeException
Returns useful result of operation .