PHP Class Sulu\Bundle\MediaBundle\Entity\CollectionType

Mostrar archivo Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addCollection ( Collection $collections ) Add collections.
getCollections ( ) : Collection Get collections.
getDescription ( ) : string Get description.
getId ( ) : integer Get id.
getKey ( ) : string Get key.
getName ( ) : string Get name.
removeCollection ( Collection $collections ) Remove collections.
setDescription ( string $description ) Set description.
setId ( integer $id ) To force id = 1 in load fixtures.
setKey ( string $key ) Set key.
setName ( string $name ) Set name.

Method Details

__construct() public method

Constructor.
public __construct ( )

addCollection() public method

Add collections.
public addCollection ( Collection $collections )
$collections Collection

getCollections() public method

Get collections.
public getCollections ( ) : Collection
return Collection

getDescription() public method

Get description.
public getDescription ( ) : string
return string

getId() public method

Get id.
public getId ( ) : integer
return integer

getKey() public method

Get key.
public getKey ( ) : string
return string

getName() public method

Get name.
public getName ( ) : string
return string

removeCollection() public method

Remove collections.
public removeCollection ( Collection $collections )
$collections Collection

setDescription() public method

Set description.
public setDescription ( string $description )
$description string

setId() public method

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

setKey() public method

Set key.
public setKey ( string $key )
$key string

setName() public method

Set name.
public setName ( string $name )
$name string