PHP Class Neos\Media\Domain\Model\AssetCollection

Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$assets Collection<\Neos\Media\Domain\Model\Asset>
$tags Collection<\Neos\Media\Domain\Model\Tag>
$title string

Public Methods

Method Description
__construct ( string $title )
addAsset ( Asset $asset ) : boolean Add one asset to the asset collection
addTag ( Tag $tag ) : boolean Add a single tag to this asset
getAssets ( ) : ArrayCollection Returns the Assets
getTags ( ) : Doctrine\Common\Collections\Collection Return the tags assigned to this asset
getTitle ( ) : string Returns the Title
removeAsset ( Asset $asset ) : boolean Remove one asset from the asset collection
removeTag ( Tag $tag ) : boolean Remove a single tag from this asset
setAssets ( ArrayCollection $assets ) : void Sets the Assets
setTags ( Doctrine\Common\Collections\Collection $tags ) : void Set the tags assigned to this asset
setTitle ( string $title ) : void Sets the Title

Method Details

__construct() public method

public __construct ( string $title )
$title string

addAsset() public method

Add one asset to the asset collection
public addAsset ( Asset $asset ) : boolean
$asset Asset
return boolean

addTag() public method

Add a single tag to this asset
public addTag ( Tag $tag ) : boolean
$tag Tag
return boolean

getAssets() public method

Returns the Assets
public getAssets ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getTags() public method

Return the tags assigned to this asset
public getTags ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getTitle() public method

Returns the Title
public getTitle ( ) : string
return string

removeAsset() public method

Remove one asset from the asset collection
public removeAsset ( Asset $asset ) : boolean
$asset Asset
return boolean

removeTag() public method

Remove a single tag from this asset
public removeTag ( Tag $tag ) : boolean
$tag Tag
return boolean

setAssets() public method

Sets the Assets
public setAssets ( ArrayCollection $assets ) : void
$assets Doctrine\Common\Collections\ArrayCollection
return void

setTags() public method

Set the tags assigned to this asset
public setTags ( Doctrine\Common\Collections\Collection $tags ) : void
$tags Doctrine\Common\Collections\Collection
return void

setTitle() public method

Sets the Title
public setTitle ( string $title ) : void
$title string
return void

Property Details

$assets protected property

protected Collection<\Neos\Media\Domain\Model\Asset> $assets
return Collection<\Neos\Media\Domain\Model\Asset>

$tags protected property

protected Collection<\Neos\Media\Domain\Model\Tag> $tags
return Collection<\Neos\Media\Domain\Model\Tag>

$title protected property

protected string $title
return string