Letter
extends Message
in package
Generated from protobuf message <code>letters.letters.Letter</code>
Table of Contents
Properties
- $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>
- $name : mixed
- Generated from protobuf field <code>string name = 1;</code>
- $title : mixed
- Generated from protobuf field <code>string title = 2;</code>
- $user : mixed
- Output only.
- $visible : mixed
- When creating a letter it will be always false. It can only be updated afterwards.
Methods
- __construct() : mixed
- Constructor.
- clearCreateTime() : mixed
- clearUser() : mixed
- 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>
- getName() : string
- Generated from protobuf field <code>string name = 1;</code>
- getTitle() : string
- Generated from protobuf field <code>string title = 2;</code>
- getUser() : User|null
- Output only.
- getVisible() : bool
- When creating a letter it will be always false. It can only be updated afterwards.
- hasCreateTime() : mixed
- hasUser() : mixed
- 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>
- setName() : $this
- Generated from protobuf field <code>string name = 1;</code>
- setTitle() : $this
- Generated from protobuf field <code>string title = 2;</code>
- setUser() : $this
- Output only.
- setVisible() : $this
- When creating a letter it will be always false. It can only be updated afterwards.
Properties
$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
$name
Generated from protobuf field <code>string name = 1;</code>
protected
mixed
$name
= ''
$title
Generated from protobuf field <code>string title = 2;</code>
protected
mixed
$title
= ''
$user
Output only.
protected
mixed
$user
= null
Generated from protobuf field .letters.letters.User user = 6;
$visible
When creating a letter it will be always false. It can only be updated afterwards.
protected
mixed
$visible
= false
Generated from protobuf field bool visible = 4;
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 $title @type string $content @type bool $visible When creating a letter it will be always false. It can only be updated afterwards. @type \Google\Protobuf\Timestamp $create_time @type \Letters\Letters\User $user Output only.}
clearCreateTime()
public
clearCreateTime() : mixed
clearUser()
public
clearUser() : mixed
getContent()
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|nullgetName()
Generated from protobuf field <code>string name = 1;</code>
public
getName() : string
Return values
stringgetTitle()
Generated from protobuf field <code>string title = 2;</code>
public
getTitle() : string
Return values
stringgetUser()
Output only.
public
getUser() : User|null
Generated from protobuf field .letters.letters.User user = 6;
Return values
User|nullgetVisible()
When creating a letter it will be always false. It can only be updated afterwards.
public
getVisible() : bool
Generated from protobuf field bool visible = 4;
Return values
boolhasCreateTime()
public
hasCreateTime() : mixed
hasUser()
public
hasUser() : mixed
setContent()
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
$thissetName()
Generated from protobuf field <code>string name = 1;</code>
public
setName(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()
Output only.
public
setUser(User $var) : $this
Generated from protobuf field .letters.letters.User user = 6;
Parameters
- $var : User
Return values
$thissetVisible()
When creating a letter it will be always false. It can only be updated afterwards.
public
setVisible(bool $var) : $this
Generated from protobuf field bool visible = 4;
Parameters
- $var : bool