public function set_status($status, $message = null) {
        $this->status = $status;
        $this->message = is_null($message) ? $this->message : $message;
        $this->timeend = time();
    }
public function set_status($status, $message = null) {
        $this->status = $status;
        $this->message = is_null($message) ? $this->message : $message;
        $this->timeend = time();
    }
public function set_status ( $ status , $ message = null ) { $ this -> status = $ status ; $ this -> message = is_null ( $ message ) ? $ this -> message : $ message ; $ this -> timeend = time ( ) ; }
Sets the result status of the allocation

@param int $status the status code, eg {@link self::STATUS_OK}
@param string $message optional status message
Sets the result status of the allocation