Category
extends Message
in package
Generated from protobuf message <code>recipes.recipe_categories.Category</code>
Table of Contents
Properties
- $display_name : mixed
- Generated from protobuf field <code>string display_name = 2 [json_name = "displayName"];</code>
- $name : mixed
- Generated from protobuf field <code>string name = 1 [json_name = "name"];</code>
- $slug : mixed
- Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
Methods
- __construct() : mixed
- Constructor.
- getDisplayName() : string
- Generated from protobuf field <code>string display_name = 2 [json_name = "displayName"];</code>
- getName() : string
- Generated from protobuf field <code>string name = 1 [json_name = "name"];</code>
- getSlug() : string
- Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
- setDisplayName() : $this
- Generated from protobuf field <code>string display_name = 2 [json_name = "displayName"];</code>
- setName() : $this
- Generated from protobuf field <code>string name = 1 [json_name = "name"];</code>
- setSlug() : $this
- Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
Properties
$display_name
Generated from protobuf field <code>string display_name = 2 [json_name = "displayName"];</code>
protected
mixed
$display_name
= ''
$name
Generated from protobuf field <code>string name = 1 [json_name = "name"];</code>
protected
mixed
$name
= ''
$slug
Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
protected
mixed
$slug
= ''
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type string $name @type string $display_name @type string $slug}
getDisplayName()
Generated from protobuf field <code>string display_name = 2 [json_name = "displayName"];</code>
public
getDisplayName() : string
Return values
stringgetName()
Generated from protobuf field <code>string name = 1 [json_name = "name"];</code>
public
getName() : string
Return values
stringgetSlug()
Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
public
getSlug() : string
Return values
stringsetDisplayName()
Generated from protobuf field <code>string display_name = 2 [json_name = "displayName"];</code>
public
setDisplayName(string $var) : $this
Parameters
- $var : string
Return values
$thissetName()
Generated from protobuf field <code>string name = 1 [json_name = "name"];</code>
public
setName(string $var) : $this
Parameters
- $var : string
Return values
$thissetSlug()
Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
public
setSlug(string $var) : $this
Parameters
- $var : string