Tag
extends Model
in package
implements
Entity, HasAmounts, HasUrl
Uses
HasFactory, HasEntity, HasAmountsTrait
Class Tag.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
- HasAmounts
- Trait HasAmounts
- HasUrl
Constants
- ENTITY_TYPE = 'tag'
Properties
- $id : int
- $tag_hyperlink : string
- $tag_url : string
- $text : string
- $timestamps : mixed
- $total_item : int
- $fillable : mixed
- $table : mixed
Methods
- decrementAmount() : int
- decrementTotalItem() : void
- entityId() : int
- entityType() : string
- factory() : TagFactory
- getTagHyperlinkAttribute() : string
- incrementAmount() : int
- incrementTotalItem() : void
- incrementTotalView() : void
- moduleName() : string
- toLink() : string|null
- toRouter() : string|null
- toUrl() : string|null
- handleNegativeNumber() : void
- newFactory() : TagFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'tag'
Properties
$id
public
int
$id
$tag_hyperlink
public
string
$tag_hyperlink
$tag_url
public
string
$tag_url
$text
public
string
$text
$timestamps
public
mixed
$timestamps
= false
$total_item
public
int
$total_item
$fillable
protected
mixed
$fillable
= ['text', 'tag_url', 'total_item']
$table
protected
mixed
$table
= 'hashtag_tags'
Methods
decrementAmount()
public
decrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intdecrementTotalItem()
public
decrementTotalItem() : void
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : TagFactory
Parameters
- $parameters : mixed
Return values
TagFactorygetTagHyperlinkAttribute()
public
getTagHyperlinkAttribute() : string
Return values
stringincrementAmount()
public
incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intincrementTotalItem()
public
incrementTotalItem() : void
incrementTotalView()
public
incrementTotalView() : void
moduleName()
public
moduleName() : string
Return values
stringtoLink()
public
toLink() : string|null
Return values
string|nulltoRouter()
public
toRouter() : string|null
Return values
string|nulltoUrl()
public
toUrl() : string|null
Return values
string|nullhandleNegativeNumber()
protected
handleNegativeNumber(string $column) : void
Parameters
- $column : string
newFactory()
protected
static newFactory() : TagFactory