SubCategoriesType
in package
Class representing SubCategoriesType.
XSD Type: subCategoriesType
Table of Contents
- $category : array<string|int, mixed>
- addToCategory() : self
- Adds as category.
- getCategory() : array<string|int, CategoryType>
- Gets as category.
- issetCategory() : bool
- isset category.
- setCategory() : self
- Sets a new category.
- unsetCategory() : void
- unset category.
Properties
$category
private
array<string|int, mixed>
$category
= []
Methods
addToCategory()
Adds as category.
public
addToCategory(CategoryType $category) : self
Parameters
- $category : CategoryType
Return values
self —getCategory()
Gets as category.
public
getCategory() : array<string|int, CategoryType>
Return values
array<string|int, CategoryType> —issetCategory()
isset category.
public
issetCategory(int|string $index) : bool
Parameters
- $index : int|string
Return values
bool —setCategory()
Sets a new category.
public
setCategory([array<string|int, CategoryType> $category = null ]) : self
Parameters
- $category : array<string|int, CategoryType> = null
Return values
self —unsetCategory()
unset category.
public
unsetCategory(int|string $index) : void
Parameters
- $index : int|string