Category
extends Message
in package
Generated from protobuf message <code>php_bff.bff.Category</code>
Table of Contents
Properties
- $code : mixed
- Generated from protobuf field <code>string code = 1 [json_name = "code"];</code>
- $name : mixed
- Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
- $slug : mixed
- Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
Methods
- __construct() : mixed
- Constructor.
- getCode() : string
- Generated from protobuf field <code>string code = 1 [json_name = "code"];</code>
- getName() : string
- Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
- getSlug() : string
- Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
- setCode() : $this
- Generated from protobuf field <code>string code = 1 [json_name = "code"];</code>
- setName() : $this
- Generated from protobuf field <code>string name = 2 [json_name = "name"];</code>
- setSlug() : $this
- Generated from protobuf field <code>string slug = 3 [json_name = "slug"];</code>
Properties
$code
Generated from protobuf field <code>string code = 1 [json_name = "code"];</code>
protected
mixed
$code
= ''
$name
Generated from protobuf field <code>string name = 2 [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 $code @type string $name @type string $slug}
getCode()
Generated from protobuf field <code>string code = 1 [json_name = "code"];</code>
public
getCode() : string
Return values
stringgetName()
Generated from protobuf field <code>string name = 2 [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
stringsetCode()
Generated from protobuf field <code>string code = 1 [json_name = "code"];</code>
public
setCode(string $var) : $this
Parameters
- $var : string
Return values
$thissetName()
Generated from protobuf field <code>string name = 2 [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