Section
in package
implements
JsonSerializable
Class Section
Represents a section in the library
Table of Contents
Interfaces
- JsonSerializable
Properties
- $description : string
- Section description
- $id : int
- Section ID
- $localizator : string
- Section localizator
Methods
- getDescription() : string
- Gets the section description
- getId() : int
- Gets the section ID
- getLocalizator() : string
- Gets the section localizator
- jsonSerialize() : array<string|int, mixed>
- setDescription() : self
- Sets the section description
- setId() : self
- Sets the section ID
- setLocalizator() : self
- Sets the section localizator
Properties
$description
Section description
private
string
$description
$id
Section ID
private
int
$id
$localizator
Section localizator
private
string
$localizator
Methods
getDescription()
Gets the section description
public
getDescription() : string
Return values
string —The section description.
getId()
Gets the section ID
public
getId() : int
Return values
int —The section ID
getLocalizator()
Gets the section localizator
public
getLocalizator() : string
Return values
string —The section localizator
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>setDescription()
Sets the section description
public
setDescription(string $description) : self
Parameters
- $description : string
-
The section description
Return values
selfsetId()
Sets the section ID
public
setId(int $id) : self
Parameters
- $id : int
-
The section ID
Return values
selfsetLocalizator()
Sets the section localizator
public
setLocalizator(string $localizator) : self
Parameters
- $localizator : string
-
The section localizator