Category
in package
Category
Tags
Table of Contents
Properties
- $id : int
- $isEnabled : bool
- $name : string
- $parentId : int
- $products : mixed
Methods
- __construct() : mixed
- Category constructor.
- getId() : int
- Get id
- getName() : string
- getParentId() : int|null
- getProducts() : Collection
- isEnabled() : bool
- setId() : Category
- setIsEnabled() : void
- setName() : Category
- setParentId() : mixed
Properties
$id
private
int
$id
Tags
$isEnabled
private
bool
$isEnabled
Tags
$name
private
string
$name
Tags
$parentId
private
int
$parentId
Tags
$products
private
mixed
$products
Tags
Methods
__construct()
Category constructor.
public
__construct() : mixed
getId()
Get id
public
getId() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetParentId()
public
getParentId() : int|null
Return values
int|nullgetProducts()
public
getProducts() : Collection
Return values
CollectionisEnabled()
public
isEnabled() : bool
Return values
boolsetId()
public
setId(int $id) : Category
Parameters
- $id : int
Return values
CategorysetIsEnabled()
public
setIsEnabled(bool $isEnabled) : void
Parameters
- $isEnabled : bool
setName()
public
setName(string $name) : Category
Parameters
- $name : string
Return values
CategorysetParentId()
public
setParentId(int|null $parentId) : mixed
Parameters
- $parentId : int|null