src/JSendResponse.php
public function getArray()
  {
    $errors = empty($this->errors) ? null : $this->errors;

    $response = array(
        'status' => $this->getStatus(),
        'data'   => $this->data,
        'errors' => $errors,
    );

    if (!is_null($this->code)) {
      $response['code'] = $this->code;
    }

    if (!is_null($this->message)) {
      $response['message'] = $this->message;
    }

    return $response;
  }
public function getArray()
  {
    $errors = empty($this->errors) ? null : $this->errors;

    $response = array(
        'status' => $this->getStatus(),
        'data'   => $this->data,
        'errors' => $errors,
    );

    if (!is_null($this->code)) {
      $response['code'] = $this->code;
    }

    if (!is_null($this->message)) {
      $response['message'] = $this->message;
    }

    return $response;
  }
public function getArray ( ) { $ errors = empty ( $ this -> errors ) ? null : $ this -> errors ; $ response = array ( 'status' => $ this -> getStatus ( ) , 'data' => $ this -> data , 'errors' => $ errors , ) ; if ( ! is_null ( $ this -> code ) ) { $ response [ 'code' ] = $ this -> code ; } if ( ! is_null ( $ this -> message ) ) { $ response [ 'message' ] = $ this -> message ; } return $ response ; }
Returns the array version of the request response

@return array
Returns the array version of the request response