ServiceGroup
in package
A service group aggregates a list of services with a name and a short description.
Table of Contents
Properties
- $description : string
- Description.
- $id : int
- The ID of the service group when it got created in a stafeul way.
- $isDefault : bool
- Is this group a default group created by Real Cookie Banner and not manually?
- $isEssential : bool
- Is this the essential group?
- $items : array<string|int, Service>
- The services of the service group.
- $name : string
- Name.
- $slug : string
- Slug of the name.
Methods
- fromJson() : mixed
- Generate a `ServiceGroup` object from an array.
- getDescription() : mixed
- Getter.
- getId() : mixed
- Getter.
- getItems() : mixed
- Getter.
- getName() : mixed
- Getter.
- getSlug() : mixed
- Getter.
- isDefault() : mixed
- Getter.
- isEssential() : mixed
- Getter.
- setDescription() : mixed
- Setter.
- setId() : mixed
- Setter.
- setIsDefault() : mixed
- Setter.
- setIsEssential() : mixed
- Setter.
- setItems() : mixed
- Setter.
- setName() : mixed
- Setter.
- setSlug() : mixed
- Setter.
- toJson() : mixed
- Create a JSON representation of this object.
Properties
$description
Description.
private
string
$description
= ''
$id
The ID of the service group when it got created in a stafeul way.
private
int
$id
= 0
$isDefault
Is this group a default group created by Real Cookie Banner and not manually?
private
bool
$isDefault
= false
$isEssential
Is this the essential group?
private
bool
$isEssential
= false
$items
The services of the service group.
private
array<string|int, Service>
$items
= []
$name
Name.
private
string
$name
= ''
$slug
Slug of the name.
private
string
$slug
= ''
Methods
fromJson()
Generate a `ServiceGroup` object from an array.
public
static fromJson(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
getDescription()
Getter.
public
getDescription() : mixed
Tags
getId()
Getter.
public
getId() : mixed
Tags
getItems()
Getter.
public
getItems() : mixed
Tags
getName()
Getter.
public
getName() : mixed
Tags
getSlug()
Getter.
public
getSlug() : mixed
Tags
isDefault()
Getter.
public
isDefault() : mixed
Tags
isEssential()
Getter.
public
isEssential() : mixed
Tags
setDescription()
Setter.
public
setDescription(string $description) : mixed
Parameters
- $description : string
Tags
setId()
Setter.
public
setId(int $id) : mixed
Parameters
- $id : int
Tags
setIsDefault()
Setter.
public
setIsDefault(bool $isDefault) : mixed
Parameters
- $isDefault : bool
Tags
setIsEssential()
Setter.
public
setIsEssential(bool $isEssential) : mixed
Parameters
- $isEssential : bool
Tags
setItems()
Setter.
public
setItems(array<string|int, Service> $items) : mixed
Parameters
- $items : array<string|int, Service>
Tags
setName()
Setter.
public
setName(string $name) : mixed
Parameters
- $name : string
Tags
setSlug()
Setter.
public
setSlug(string $slug) : mixed
Parameters
- $slug : string
Tags
toJson()
Create a JSON representation of this object.
public
toJson() : mixed