The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.
↳ subtitle
string
The subtitle of the card header.
↳ image_style
int
The image's type (for example, square border or circular border).
↳ image_url
string
The URL of the image in the card header.
getTitle
The title must be specified. The header has a fixed height: if both a
title and subtitle is specified, each takes up one line. If only the
title is specified, it takes up both lines.
Returns
Type
Description
string
setTitle
The title must be specified. The header has a fixed height: if both a
title and subtitle is specified, each takes up one line. If only the
title is specified, it takes up both lines.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getSubtitle
The subtitle of the card header.
Returns
Type
Description
string
setSubtitle
The subtitle of the card header.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getImageStyle
The image's type (for example, square border or circular border).
Returns
Type
Description
int
setImageStyle
The image's type (for example, square border or circular border).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class CardHeader (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.ContextualAddOnMarkup.Card.CardHeader)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.ContextualAddOnMarkup.Card.CardHeader) \nReference documentation and code samples for the Google Apps Chat V1 Client class CardHeader.\n\nGenerated from protobuf message `google.chat.v1.ContextualAddOnMarkup.Card.CardHeader`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1 \\\\ ContextualAddOnMarkup \\\\ Card\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTitle\n\nThe title must be specified. The header has a fixed height: if both a\ntitle and subtitle is specified, each takes up one line. If only the\ntitle is specified, it takes up both lines.\n\n### setTitle\n\nThe title must be specified. The header has a fixed height: if both a\ntitle and subtitle is specified, each takes up one line. If only the\ntitle is specified, it takes up both lines.\n\n### getSubtitle\n\nThe subtitle of the card header.\n\n### setSubtitle\n\nThe subtitle of the card header.\n\n### getImageStyle\n\nThe image's type (for example, square border or circular border).\n\n### setImageStyle\n\nThe image's type (for example, square border or circular border).\n\n### getImageUrl\n\nThe URL of the image in the card header.\n\n### setImageUrl\n\nThe URL of the image in the card header."]]