PlainTextOnlyTextObject
class PlainTextOnlyTextObject implements ObjectContract
Properties
| protected string | $text | The formatting to use for this text object. |
|
| protected bool|null | $emoji | Indicates whether emojis in a text field should be escaped into the colon emoji format. |
Methods
__construct(string $text, int $maxLength = 3000, int $minLength = 1)
Create a new plain text only text object instance.
emoji()
Indicate that emojis should be escaped into the colon emoji format.
array
toArray()
Get the instance as an array.
Details
at line 25
__construct(string $text, int $maxLength = 3000, int $minLength = 1)
Create a new plain text only text object instance.
at line 41
PlainTextOnlyTextObject
emoji()
Indicate that emojis should be escaped into the colon emoji format.
at line 51
array
toArray()
Get the instance as an array.