TagHandler
class TagHandler
Class TagHandler
Properties
| protected TagRepository | $repo | TagRepository instance | |
| protected Decomposer | $decomposer | Decomposer instance |
Methods
Collection|Tag[]
set(string $taggableId, array $words = array(), string|null $instanceId = null)
Set taggable's tags
string
nonNumeric(string|int $v)
Convert to non numeric string
Collection|Tag[]
similar(string $string, int $take = 15, string|null $instanceId = null)
Search similar tags by given string
string[]
similarWord(string $string, int $take = 15, string|null $instanceId = null)
Search similar words by given string
getDecomposer()
Get the decomposer instance.
void
mixed
__call(string $name, array $arguments)
__call
Details
at line 53
__construct(TagRepository $repo, Decomposer $decomposer)
TagHandler constructor.
at line 67
Collection|Tag[]
set(string $taggableId, array $words = array(), string|null $instanceId = null)
Set taggable's tags
at line 124
private string
nonNumeric(string|int $v)
Convert to non numeric string
at line 137
Collection|Tag[]
similar(string $string, int $take = 15, string|null $instanceId = null)
Search similar tags by given string
at line 150
string[]
similarWord(string $string, int $take = 15, string|null $instanceId = null)
Search similar words by given string
at line 162
Decomposer
getDecomposer()
Get the decomposer instance.
at line 173
void
setDecomposer(Decomposer $decomposer)
Set the decomposer instance.
at line 185
mixed
__call(string $name, array $arguments)
__call