phpbb\notification\type\report_post::get_reason PHP Method

get_reason() public method

Get the reason for the notification
public get_reason ( ) : string
return string
    public function get_reason()
    {
        if ($this->get_data('report_text')) {
            return $this->user->lang('NOTIFICATION_REASON', $this->get_data('report_text'));
        }
        if (isset($this->user->lang[$this->get_data('reason_title')])) {
            return $this->user->lang('NOTIFICATION_REASON', $this->user->lang[$this->get_data('reason_title')]);
        }
        return $this->user->lang('NOTIFICATION_REASON', $this->get_data('reason_description'));
    }