AssetCollection
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
Collection
getTags()
Return the tags assigned to this asset
void
setTags(Collection $tags)
Set the tags assigned to this asset
Details
__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