class Tag (View source)

A Tag, to organize Assets

Properties

protected string $label
protected AssetCollection> $assetCollections
protected Tag $parent
protected Tag> $children

Methods

__construct(string $label)

No description

void
setLabel(string $label)

Sets the label of this tag

string
getLabel()

The label of this tag

Collection
getAssetCollections()

Return the asset collections this tag is included in

void
setAssetCollections(Collection $assetCollections)

Set the asset collections that include this tag

Tag|null
getParent()

No description

void
setParent(Tag $parent)

No description

void
addChild(Tag $child)

No description

Collection
getChildren()

No description

Details

__construct(string $label)

No description

Parameters

string $label

void setLabel(string $label)

Sets the label of this tag

Parameters

string $label

Return Value

void

string getLabel()

The label of this tag

Return Value

string

Collection getAssetCollections()

Return the asset collections this tag is included in

Return Value

Collection

void setAssetCollections(Collection $assetCollections)

Set the asset collections that include this tag

Parameters

Collection $assetCollections

Return Value

void

Tag|null getParent()

No description

Return Value

Tag|null

void setParent(Tag $parent)

No description

Parameters

Tag $parent

Return Value

void

void addChild(Tag $child)

No description

Parameters

Tag $child

Return Value

void

Collection getChildren()

No description

Return Value

Collection