PHP Class Sonata\ProductBundle\Entity\BaseProductCategory

Inheritance: implements Sonata\Component\Product\ProductCategoryInterface
Show file Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$category Sonata\ClassificationBundle\Model\CategoryInterface
$createdAt DateTime
$enabled boolean
$main boolean
$product Sonata\Component\Product\ProductInterface
$updatedAt DateTime

Public Methods

Method Description
__toString ( )
getCategory ( )
getCreatedAt ( )
getEnabled ( )
getMain ( )
getProduct ( )
getUpdatedAt ( )
setCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category )
setCreatedAt ( DateTime $createdAt = null )
setEnabled ( $enabled )
setMain ( $main )
setProduct ( Sonata\Component\Product\ProductInterface $product )
setUpdatedAt ( DateTime $updatedAt = null )

Method Details

__toString() public method

public __toString ( )

getCategory() public method

public getCategory ( )

getCreatedAt() public method

public getCreatedAt ( )

getEnabled() public method

public getEnabled ( )

getMain() public method

public getMain ( )

getProduct() public method

public getProduct ( )

getUpdatedAt() public method

public getUpdatedAt ( )

setCategory() public method

public setCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category )
$category Sonata\ClassificationBundle\Model\CategoryInterface

setCreatedAt() public method

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

setEnabled() public method

public setEnabled ( $enabled )

setMain() public method

public setMain ( $main )

setProduct() public method

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

setUpdatedAt() public method

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

Property Details

$category protected property

protected CategoryInterface,Sonata\ClassificationBundle\Model $category
return Sonata\ClassificationBundle\Model\CategoryInterface

$createdAt protected property

protected DateTime $createdAt
return DateTime

$enabled protected property

protected bool $enabled
return boolean

$main protected property

protected bool $main
return boolean

$product protected property

protected ProductInterface,Sonata\Component\Product $product
return Sonata\Component\Product\ProductInterface

$updatedAt protected property

protected DateTime $updatedAt
return DateTime