Letter
extends Message
in package
Generated from protobuf message <code>php_bff.bff.Letter</code>
Table of Contents
Properties
- $code : mixed
- Generated from protobuf field <code>string code = 1;</code>
- $content : mixed
- Generated from protobuf field <code>string content = 3;</code>
- $create_time : mixed
- Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5;</code>
- $slug : mixed
- Generated from protobuf field <code>string slug = 7;</code>
- $title : mixed
- Generated from protobuf field <code>string title = 2;</code>
- $user : mixed
- Generated from protobuf field <code>.php_bff.bff.User user = 6;</code>
Methods
- __construct() : mixed
- Constructor.
- clearCreateTime() : mixed
- clearUser() : mixed
- getCode() : string
- Generated from protobuf field <code>string code = 1;</code>
- getContent() : string
- Generated from protobuf field <code>string content = 3;</code>
- getCreateTime() : Timestamp|null
- Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5;</code>
- getSlug() : string
- Generated from protobuf field <code>string slug = 7;</code>
- getTitle() : string
- Generated from protobuf field <code>string title = 2;</code>
- getUser() : User|null
- Generated from protobuf field <code>.php_bff.bff.User user = 6;</code>
- hasCreateTime() : mixed
- hasUser() : mixed
- setCode() : $this
- Generated from protobuf field <code>string code = 1;</code>
- setContent() : $this
- Generated from protobuf field <code>string content = 3;</code>
- setCreateTime() : $this
- Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5;</code>
- setSlug() : $this
- Generated from protobuf field <code>string slug = 7;</code>
- setTitle() : $this
- Generated from protobuf field <code>string title = 2;</code>
- setUser() : $this
- Generated from protobuf field <code>.php_bff.bff.User user = 6;</code>
Properties
$code
Generated from protobuf field <code>string code = 1;</code>
protected
mixed
$code
= ''
$content
Generated from protobuf field <code>string content = 3;</code>
protected
mixed
$content
= ''
$create_time
Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5;</code>
protected
mixed
$create_time
= null
$slug
Generated from protobuf field <code>string slug = 7;</code>
protected
mixed
$slug
= ''
$title
Generated from protobuf field <code>string title = 2;</code>
protected
mixed
$title
= ''
$user
Generated from protobuf field <code>.php_bff.bff.User user = 6;</code>
protected
mixed
$user
= null
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 $title @type string $content @type \Google\Protobuf\Timestamp $create_time @type \Php_bff\Bff\User $user @type string $slug}
clearCreateTime()
public
clearCreateTime() : mixed
clearUser()
public
clearUser() : mixed
getCode()
Generated from protobuf field <code>string code = 1;</code>
public
getCode() : string
Return values
stringgetContent()
Generated from protobuf field <code>string content = 3;</code>
public
getContent() : string
Return values
stringgetCreateTime()
Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5;</code>
public
getCreateTime() : Timestamp|null
Return values
Timestamp|nullgetSlug()
Generated from protobuf field <code>string slug = 7;</code>
public
getSlug() : string
Return values
stringgetTitle()
Generated from protobuf field <code>string title = 2;</code>
public
getTitle() : string
Return values
stringgetUser()
Generated from protobuf field <code>.php_bff.bff.User user = 6;</code>
public
getUser() : User|null
Return values
User|nullhasCreateTime()
public
hasCreateTime() : mixed
hasUser()
public
hasUser() : mixed
setCode()
Generated from protobuf field <code>string code = 1;</code>
public
setCode(string $var) : $this
Parameters
- $var : string
Return values
$thissetContent()
Generated from protobuf field <code>string content = 3;</code>
public
setContent(string $var) : $this
Parameters
- $var : string
Return values
$thissetCreateTime()
Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5;</code>
public
setCreateTime(Timestamp $var) : $this
Parameters
- $var : Timestamp
Return values
$thissetSlug()
Generated from protobuf field <code>string slug = 7;</code>
public
setSlug(string $var) : $this
Parameters
- $var : string
Return values
$thissetTitle()
Generated from protobuf field <code>string title = 2;</code>
public
setTitle(string $var) : $this
Parameters
- $var : string
Return values
$thissetUser()
Generated from protobuf field <code>.php_bff.bff.User user = 6;</code>
public
setUser(User $var) : $this
Parameters
- $var : User