CanFormatState
trait CanFormatState (View source)
Properties
protected Closure|null | $formatStateUsing | ||
protected int|Closure|null | $characterLimit | ||
protected string|Closure|null | $characterLimitEnd | ||
protected int|Closure|null | $wordLimit | ||
protected string|Closure|null | $wordLimitEnd | ||
protected string|Closure|null | $prefix | ||
protected string|Closure|null | $suffix | ||
protected bool | $isListedAsJson |
Methods
limit(int|Closure|null $length = 100, string|Closure|null $end = '...')
No description
words(int|Closure|null $words = 100, string|Closure|null $end = '...')
No description
prefix(string|Closure|null $prefix)
No description
suffix(string|Closure|null $suffix)
No description
mixed
formatState(mixed $state)
No description
string|null
getFormattedState()
No description
int|null
getCharacterLimit()
No description
string|null
getCharacterLimitEnd()
No description
int|null
getWordLimit()
No description
string|null
getWordLimitEnd()
No description
string|null
getPrefix()
No description
string|null
getSuffix()
No description
listAsJson(bool $condition = true)
No description
bool
isListedAsJson()
No description
Details
CanFormatState
limit(int|Closure|null $length = 100, string|Closure|null $end = '...')
No description
CanFormatState
words(int|Closure|null $words = 100, string|Closure|null $end = '...')
No description
CanFormatState
prefix(string|Closure|null $prefix)
No description
CanFormatState
suffix(string|Closure|null $suffix)
No description
CanFormatState
formatStateUsing(Closure|null $callback)
No description
mixed
formatState(mixed $state)
No description
string|null
getFormattedState()
No description
int|null
getCharacterLimit()
No description
string|null
getCharacterLimitEnd()
No description
int|null
getWordLimit()
No description
string|null
getWordLimitEnd()
No description
string|null
getPrefix()
No description
string|null
getSuffix()
No description
CanFormatState
listAsJson(bool $condition = true)
No description
bool
isListedAsJson()
No description