PHP Class PartKeepr\StorageLocationBundle\Entity\StorageLocationCategory

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
$storageLocations

Public Methods

Method Description
generateCategoryPath ( $pathSeparator )
getCategoryPath ( ) : string Returns the category path.
getChildren ( ) : ArrayCollection Returns the children.
getParent ( ) : mixed Returns the parent category.
getStorageLocations ( ) : ArrayCollection Returns the storage locations.
setCategoryPath ( $categoryPath )
setParent ( AbstractCategory $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

getStorageLocations() public method

Returns the storage locations.
public getStorageLocations ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

setCategoryPath() public method

public setCategoryPath ( $categoryPath )

setParent() public method

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

Property Details

$categoryPath protected property

protected string $categoryPath
return string

$children protected property

protected $children

$parent protected property

protected $parent

$storageLocations protected property

protected $storageLocations