PHP Class WellCommerce\Bundle\CategoryBundle\Entity\Category

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface, use trait Knp\DoctrineBehaviors\Model\Translatable\Translatable, use trait Knp\DoctrineBehaviors\Model\Timestampable\Timestampable, use trait Knp\DoctrineBehaviors\Model\Blameable\Blameable, use trait WellCommerce\Bundle\AppBundle\Doctrine\ORM\Behaviours\EnableableTrait, use trait WellCommerce\Bundle\ShopBundle\Entity\ShopCollectionAwareTrait, use trait WellCommerce\Bundle\AppBundle\Entity\HierarchyAwareTrait
Datei anzeigen Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Property Type Description
$children Doctrine\Common\Collections\Collection
$parent null | WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface
$products Doctrine\Common\Collections\Collection

Public Methods

Method Description
addChild ( WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface $child )
addProduct ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product )
getChildren ( )
getParent ( )
getProducts ( )
setChildren ( Doctrine\Common\Collections\Collection $children )
setParent ( WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface $parent = null )
setProducts ( Doctrine\Common\Collections\Collection $products )

Method Details

addChild() public method

public addChild ( WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface $child )
$child WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface

addProduct() public method

public addProduct ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product )
$product WellCommerce\Bundle\ProductBundle\Entity\ProductInterface

getChildren() public method

public getChildren ( )

getParent() public method

public getParent ( )

getProducts() public method

public getProducts ( )

setChildren() public method

public setChildren ( Doctrine\Common\Collections\Collection $children )
$children Doctrine\Common\Collections\Collection

setParent() public method

public setParent ( WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface $parent = null )
$parent WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface

setProducts() public method

public setProducts ( Doctrine\Common\Collections\Collection $products )
$products Doctrine\Common\Collections\Collection

Property Details

$children protected_oe property

protected Collection,Doctrine\Common\Collections $children
return Doctrine\Common\Collections\Collection

$parent protected_oe property

protected null|CategoryInterface,WellCommerce\Bundle\CategoryBundle\Entity $parent
return null | WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface

$products protected_oe property

protected Collection,Doctrine\Common\Collections $products
return Doctrine\Common\Collections\Collection