src/Response.php
private function setStatusInfo()
    {
        $statusInfo['status'] = [
            'data' => date('Y-m-d H:i:s')
        ];
        $origData = json_decode($this->ResponseData, true);
        if (!is_null($origData)) {
            $this->ResponseData = json_encode(array_merge($origData, $statusInfo));
        } else {
            $this->ResponseData = json_encode($statusInfo);
        }
        return $this;
    }
private function setStatusInfo()
    {
        $statusInfo['status'] = [
            'data' => date('Y-m-d H:i:s')
        ];
        $origData = json_decode($this->ResponseData, true);
        if (!is_null($origData)) {
            $this->ResponseData = json_encode(array_merge($origData, $statusInfo));
        } else {
            $this->ResponseData = json_encode($statusInfo);
        }
        return $this;
    }
private function setStatusInfo ( ) { $ statusInfo [ 'status' ] = [ 'data' => date ( 'Y-m-d H:i:s' ) ] ; $ origData = json_decode ( $ this -> ResponseData , true ) ; if ( ! is_null ( $ origData ) ) { $ this -> ResponseData = json_encode ( array_merge ( $ origData , $ statusInfo ) ) ; } else { $ this -> ResponseData = json_encode ( $ statusInfo ) ; } return $ this ; }
Append status info to a response data

@return clagiordano\weblibs\dbabstraction\Response
Append status info to a response data