protected function output($code, $message, $data = null)
    {
        $result = [
            'code'    => $code,
            'message' => $message,
            'data'    => $data,
        ];

        if (!$this->assoc) {
            $result = (object) $result;
        }

        return $result;
    }