Message
extends Entity
in package
Message Entity
Table of Contents
Properties
- $body : string
- $conversation : Conversation
- $conversation_id : int
- $created : DateTime|null
- $delivered_at : DateTime|null
- $id : int
- $is_read : bool|null
- $nonce : string|null
- $read_at : DateTime|null
- $recipient : User
- $recipient_id : int
- $sender : User
- $sender_id : int
- $_accessible : array<string, bool>
- Fields that can be mass assigned using newEntity() or patchEntity().
- $_virtual : array<string|int, mixed>
Methods
- _getContent() : mixed
- _setBody() : string|null
Properties
$body
public
string
$body
$conversation
public
Conversation
$conversation
$conversation_id
public
int
$conversation_id
$created
public
DateTime|null
$created
$delivered_at
public
DateTime|null
$delivered_at
$id
public
int
$id
$is_read
public
bool|null
$is_read
$nonce
public
string|null
$nonce
$read_at
public
DateTime|null
$read_at
$recipient
public
User
$recipient
$recipient_id
public
int
$recipient_id
$sender
public
User
$sender
$sender_id
public
int
$sender_id
$_accessible
Fields that can be mass assigned using newEntity() or patchEntity().
protected
array<string, bool>
$_accessible
= ['*' => true, 'id' => false]
Note that when '' is set to true, this allows all unspecified fields to be mass assigned. For security purposes, it is advised to set '' to false (or remove it), and explicitly make individual fields accessible as needed.
$_virtual
protected
array<string|int, mixed>
$_virtual
= ['content']
Methods
_getContent()
protected
_getContent() : mixed
_setBody()
protected
_setBody(string|null $value) : string|null
Parameters
- $value : string|null