getPayload() public method

Returns the payload of status response.
public getPayload ( ) : string
return string
Ejemplo n.º 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');
 }