#  Category

**Fully Qualified**: [`\Frontastic\Common\ProductApiBundle\Domain\Category`](../../../../src/php/ProductApiBundle/Domain/Category.php)

**Extends**: [`ApiDataObject`](../../CoreBundle/Domain/ApiDataObject.md)

Property|Type|Default|Required|Description
--------|----|-------|--------|-----------
`categoryId` | `string` |  | *Yes* | 
`name` | `string` |  | *Yes* | 
`depth` | `int` |  | *Yes* | 
`path` | `string` |  | *Yes* | The materialized id path for this category.
`slug` | `string` |  | *Yes* | 
`dangerousInnerCategory` | `mixed` |  | - | Access original object from backend

## Methods

* [getPathAsArray()](#getpathasarray)
* [getAncestorIds()](#getancestorids)
* [getParentCategoryId()](#getparentcategoryid)

### getPathAsArray()

```php
public function getPathAsArray(): array
```

Return Value: `array`

### getAncestorIds()

```php
public function getAncestorIds(): array
```

Return Value: `array`

### getParentCategoryId()

```php
public function getParentCategoryId(): ?string
```

Return Value: `?string`

Generated with [Frontastic API Docs](https://github.com/FrontasticGmbH/apidocs).
