PHP Class PartKeepr\PartBundle\Entity\PartCategory

Inheritance: extends PartKeepr\CategoryBundle\Entity\AbstractCategory, implements PartKeepr\CategoryBundle\Entity\CategoryPathInterface
Show file Open project: partkeepr/PartKeepr Class Usage Examples

Protected Properties

Property Type Description
$categoryPath string
$children
$parent

Public Methods

Method Description
generateCategoryPath ( $pathSeparator )
getCategoryPath ( ) : string Returns the category path.
getChildren ( ) : ArrayCollection Returns the children.
getParent ( ) : mixed Returns the parent category.
setCategoryPath ( $categoryPath )
setParent ( AbstractCategory | null $parent = null ) Sets the parent category.

Method Details

generateCategoryPath() public method

public generateCategoryPath ( $pathSeparator )

getCategoryPath() public method

Returns the category path.
public getCategoryPath ( ) : string
return string

getChildren() public method

Returns the children.
public getChildren ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getParent() public method

Returns the parent category.
public getParent ( ) : mixed
return mixed

setCategoryPath() public method

public setCategoryPath ( $categoryPath )

setParent() public method

Sets the parent category.
public setParent ( AbstractCategory | null $parent = null )
$parent PartKeepr\CategoryBundle\Entity\AbstractCategory | null

Property Details

$categoryPath protected property

protected string $categoryPath
return string

$children protected property

protected $children

$parent protected property

protected $parent