PHP Interface Sonata\Component\Product\ProductCategoryInterface

Show file Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

Method Description
getCategory ( ) : Sonata\ClassificationBundle\Model\CategoryInterface Get Category.
getCreatedAt ( ) : Datetime Get createdAt.
getEnabled ( ) : boolean Get enabled.
getMain ( ) : boolean Get if product category is the main category.
getProduct ( ) : Sonata\Component\Product\ProductInterface Get Product.
getUpdatedAt ( ) : DateTime Get updatedAt.
setCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category ) Set Category.
setCreatedAt ( DateTime $createdAt = null ) Set createdAt.
setEnabled ( boolean $enabled ) Set enabled.
setMain ( boolean $main ) Set if product category is the main category.
setProduct ( Sonata\Component\Product\ProductInterface $product ) Set Product.
setUpdatedAt ( DateTime $updatedAt = null ) Set updatedAt.

Method Details

getCategory() public method

Get Category.
public getCategory ( ) : Sonata\ClassificationBundle\Model\CategoryInterface
return Sonata\ClassificationBundle\Model\CategoryInterface $category

getCreatedAt() public method

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

getEnabled() public method

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

getMain() public method

Get if product category is the main category.
public getMain ( ) : boolean
return boolean $main

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

setCategory() public method

Set Category.
public setCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category )
$category Sonata\ClassificationBundle\Model\CategoryInterface

setCreatedAt() public method

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

setEnabled() public method

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

setMain() public method

Set if product category is the main category.
public setMain ( boolean $main )
$main 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