class AssetCollection (View source)

Class AssetCollection

Properties

protected string $title
protected Asset> $assets
protected Tag> $tags

Methods

__construct(string $title)

No description

string
getTitle()

Returns the Title

void
setTitle(string $title)

Sets the Title

ArrayCollection
getAssets()

Returns the Assets

void
setAssets(ArrayCollection $assets)

Sets the Assets

bool
addAsset(Asset $asset)

Add one asset to the asset collection

bool
removeAsset(Asset $asset)

Remove one asset from the asset collection

Collection
getTags()

Return the tags assigned to this asset

bool
addTag(Tag $tag)

Add a single tag to this asset

void
setTags(Collection $tags)

Set the tags assigned to this asset

bool
removeTag(Tag $tag)

Remove a single tag from this asset

Details

__construct(string $title)

No description

Parameters

string $title

string getTitle()

Returns the Title

Return Value

string

void setTitle(string $title)

Sets the Title

Parameters

string $title

Return Value

void

ArrayCollection getAssets()

Returns the Assets

Return Value

ArrayCollection

void setAssets(ArrayCollection $assets)

Sets the Assets

Parameters

ArrayCollection $assets

Return Value

void

bool addAsset(Asset $asset)

Add one asset to the asset collection

Parameters

Asset $asset

Return Value

bool

bool removeAsset(Asset $asset)

Remove one asset from the asset collection

Parameters

Asset $asset

Return Value

bool

Collection getTags()

Return the tags assigned to this asset

Return Value

Collection

bool addTag(Tag $tag)

Add a single tag to this asset

Parameters

Tag $tag

Return Value

bool

void setTags(Collection $tags)

Set the tags assigned to this asset

Parameters

Collection $tags

Return Value

void

bool removeTag(Tag $tag)

Remove a single tag from this asset

Parameters

Tag $tag

Return Value

bool