PHP Class PartKeepr\PartBundle\Entity\PartCategory

Inheritance: extends PartKeepr\CategoryBundle\Entity\AbstractCategory, implements PartKeepr\CategoryBundle\Entity\CategoryPathInterface
Afficher le fichier Open project: partkeepr/PartKeepr Class Usage Examples

Protected Properties

Свойство Type Description
$categoryPath string
$children
$parent

Méthodes publiques

Méthode 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 méthode

public generateCategoryPath ( $pathSeparator )

getCategoryPath() public méthode

Returns the category path.
public getCategoryPath ( ) : string
Résultat string

getChildren() public méthode

Returns the children.
public getChildren ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

getParent() public méthode

Returns the parent category.
public getParent ( ) : mixed
Résultat mixed

setCategoryPath() public méthode

public setCategoryPath ( $categoryPath )

setParent() public méthode

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

Property Details

$categoryPath protected_oe property

protected string $categoryPath
Résultat string

$children protected_oe property

protected $children

$parent protected_oe property

protected $parent