Category
extends Base
in package
Class Category.
Table of Contents
- $id : int
- $name : string
- getArrayCopy() : array<string|int, mixed>
- Gets the attributes of this entity.
- getId() : int
- getName() : string
- setEntityAttributes() : $this
- Sets the attributes of this entity.
- setId() : Category
- setName() : Category
Properties
$id
protected
int
$id
$name
protected
string
$name
Methods
getArrayCopy()
Gets the attributes of this entity.
public
getArrayCopy() : array<string|int, mixed>
Return values
array<string|int, mixed> —getId()
public
getId() : int
Return values
int —getName()
public
getName() : string
Return values
string —setEntityAttributes()
Sets the attributes of this entity.
public
setEntityAttributes(array<string|int, mixed> $attributes) : $this
Parameters
- $attributes : array<string|int, mixed>
Return values
$this —setId()
public
setId(int $id) : Category
Parameters
- $id : int
Return values
Category —setName()
public
setName(string $name) : Category
Parameters
- $name : string