PHP Class Sulu\Bundle\MediaBundle\Entity\MediaType

Mostra file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : MediaType Add media.
getDescription ( ) : string Get description.
getId ( ) : integer Get id.
getMedia ( ) : Doctrine\Common\Collections\Collection Get media.
getName ( ) : string Get name.
removeMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) Remove media.
setDescription ( string $description ) : MediaType Set description.
setId ( integer $id ) To force id = 1 in load fixtures.
setName ( string $name ) : MediaType Set name.

Method Details

__construct() public method

Constructor.
public __construct ( )

addMedia() public method

Add media.
public addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : MediaType
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface
return MediaType

getDescription() public method

Get description.
public getDescription ( ) : string
return string

getId() public method

Get id.
public getId ( ) : integer
return integer

getMedia() public method

Get media.
public getMedia ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getName() public method

Get name.
public getName ( ) : string
return string

removeMedia() public method

Remove media.
public removeMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media )
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface

setDescription() public method

Set description.
public setDescription ( string $description ) : MediaType
$description string
return MediaType

setId() public method

To force id = 1 in load fixtures.
public setId ( integer $id )
$id integer

setName() public method

Set name.
public setName ( string $name ) : MediaType
$name string
return MediaType