PartKeepr\FootprintBundle\Entity\FootprintCategory::getCategoryPath PHP Method

getCategoryPath() public method

Returns the category path.
public getCategoryPath ( ) : string
return string
    public function getCategoryPath()
    {
        return $this->categoryPath;
    }

Usage Example

Beispiel #1
0
 /**
  * Returns the category path.
  *
  * @Groups({"default"})
  *
  * @return string
  */
 public function getCategoryPath()
 {
     if ($this->category !== null) {
         return $this->category->getCategoryPath();
     } else {
         return '';
     }
 }