Predis\Response\Status::getPayload PHP 메소드

getPayload() 공개 메소드

Returns the payload of status response.
public getPayload ( ) : string
리턴 string
    public function getPayload()
    {
        return $this->payload;
    }

Usage Example

예제 #1
0
파일: Predis.php 프로젝트: endeveit/cache
 /**
  * Checks that response status is «OK».
  *
  * @param  \Predis\Response\Status $status
  * @return boolean
  */
 private function isStatusOk(Status $status)
 {
     return 0 === strcasecmp($status->getPayload(), 'ok');
 }