getPayload() public method

Returns the payload of status response.
public getPayload ( ) : string
return string
Example #1
0
 /**
  * Checks that response status is «OK».
  *
  * @param  \Predis\Response\Status $status
  * @return boolean
  */
 private function isStatusOk(Status $status)
 {
     return 0 === strcasecmp($status->getPayload(), 'ok');
 }