$this->message = $message;
}
- /**
- * sets the statuscode
- * @param $code int
- */
- public function setCode(int $code){
- $this->statuscode = $code;
- }
-
/**
* optionally set the total number of items available
* @param $items int
$this->perpage = $items;
}
- /**
- * set a custom message for the response
- * @param $message string the message
- */
- public function setMessage(string $message){
- $this->message = $message;
- }
-
/**
* returns the data associated with the api result
* @return array