HasHashtagTextTrait
Trait HasHashtagTextTrait.
Table of Contents
Properties
- $resource : Model
Methods
- getTransformContent() : string
- buildContentTags() : array<string|int, mixed>
- buildResourceTags() : array<string|int, mixed>
- convertToHashtag() : string
- parseHashtags() : string|null
Properties
$resource
public
Model
$resource
Methods
getTransformContent()
public
getTransformContent(string $content) : string
Parameters
- $content : string
Return values
stringbuildContentTags()
protected
buildContentTags(string|null $content) : array<string|int, mixed>
Parameters
- $content : string|null
Return values
array<string|int, mixed>buildResourceTags()
protected
buildResourceTags([HasHashTag|null $resource = null ]) : array<string|int, mixed>
Parameters
- $resource : HasHashTag|null = null
Return values
array<string|int, mixed>convertToHashtag()
protected
convertToHashtag(string $text) : string
Parameters
- $text : string
Return values
stringparseHashtags()
protected
parseHashtags(string|null $content) : string|null
Parameters
- $content : string|null