PHP Interface Sonata\Component\Product\ProductCollectionInterface

显示文件 Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
getCollection ( ) : Sonata\ClassificationBundle\Model\CollectionInterface Get Collection.
getCreatedAt ( ) : Datetime Get createdAt.
getEnabled ( ) : boolean Get enabled.
getProduct ( ) : Sonata\Component\Product\ProductInterface Get Product.
getUpdatedAt ( ) : DateTime Get updatedAt.
setCollection ( Sonata\ClassificationBundle\Model\CollectionInterface $collection ) Set Collection.
setCreatedAt ( DateTime $createdAt = null ) Set createdAt.
setEnabled ( boolean $enabled ) Set enabled.
setProduct ( Sonata\Component\Product\ProductInterface $product ) Set Product.
setUpdatedAt ( DateTime $updatedAt = null ) Set updatedAt.

Method Details

getCollection() public method

Get Collection.
public getCollection ( ) : Sonata\ClassificationBundle\Model\CollectionInterface
return Sonata\ClassificationBundle\Model\CollectionInterface $collection

getCreatedAt() public method

Get createdAt.
public getCreatedAt ( ) : Datetime
return Datetime $createdAt

getEnabled() public method

Get enabled.
public getEnabled ( ) : boolean
return boolean $enabled

getProduct() public method

Get Product.
public getProduct ( ) : Sonata\Component\Product\ProductInterface
return Sonata\Component\Product\ProductInterface

getUpdatedAt() public method

Get updatedAt.
public getUpdatedAt ( ) : DateTime
return DateTime $updatedAt

setCollection() public method

Set Collection.
public setCollection ( Sonata\ClassificationBundle\Model\CollectionInterface $collection )
$collection Sonata\ClassificationBundle\Model\CollectionInterface

setCreatedAt() public method

Set createdAt.
public setCreatedAt ( DateTime $createdAt = null )
$createdAt DateTime

setEnabled() public method

Set enabled.
public setEnabled ( boolean $enabled )
$enabled boolean

setProduct() public method

Set Product.
public setProduct ( Sonata\Component\Product\ProductInterface $product )
$product Sonata\Component\Product\ProductInterface

setUpdatedAt() public method

Set updatedAt.
public setUpdatedAt ( DateTime $updatedAt = null )
$updatedAt DateTime