Category
The model class of Category
Tags
Table of Contents
- $id : int
- $name : string
- __construct() : mixed
- category constructor
- getId() : int
- get the id of the category
- getName() : string
- get the name of the category
Properties
$id
private
int
$id
$name
private
string
$name
Methods
__construct()
category constructor
public
__construct(int $id, string $name) : mixed
Parameters
- $id : int
-
category id
- $name : string
-
category name
Return values
mixed —getId()
get the id of the category
public
getId() : int
Return values
int —getName()
get the name of the category
public
getName() : string