SubCategoriesType
in package
Class representing SubCategoriesType.
XSD Type: subCategoriesType
Table of Contents
Properties
- $category : array<string|int, CategoryType>
Methods
- 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, CategoryType>
$category
= []
Methods
addToCategory()
Adds as category.
public
addToCategory(CategoryType $category) : self
Parameters
- $category : CategoryType
Return values
selfgetCategory()
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
boolsetCategory()
Sets a new category.
public
setCategory([array<string|int, CategoryType> $category = null ]) : self
Parameters
- $category : array<string|int, CategoryType> = null
Return values
selfunsetCategory()
unset category.
public
unsetCategory(int|string $index) : void
Parameters
- $index : int|string