Documentation

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.
$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.
isEssential()  : mixed
Getter.
setDescription()  : mixed
Setter.
setId()  : 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

$isEssential

Is this the essential group?

private bool $isEssential = false

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
codeCoverageIgnore

getId()

Getter.

public getId() : mixed
Tags
codeCoverageIgnore

getItems()

Getter.

public getItems() : mixed
Tags
codeCoverageIgnore

getName()

Getter.

public getName() : mixed
Tags
codeCoverageIgnore

getSlug()

Getter.

public getSlug() : mixed
Tags
codeCoverageIgnore

isEssential()

Getter.

public isEssential() : mixed
Tags
codeCoverageIgnore

setDescription()

Setter.

public setDescription(string $description) : mixed
Parameters
$description : string
Tags
codeCoverageIgnore

setId()

Setter.

public setId(int $id) : mixed
Parameters
$id : int
Tags
codeCoverageIgnore

setIsEssential()

Setter.

public setIsEssential(string $isEssential) : mixed
Parameters
$isEssential : string
Tags
codeCoverageIgnore

setItems()

Setter.

public setItems(array<string|int, Service$items) : mixed
Parameters
$items : array<string|int, Service>
Tags
codeCoverageIgnore

setName()

Setter.

public setName(string $name) : mixed
Parameters
$name : string
Tags
codeCoverageIgnore

setSlug()

Setter.

public setSlug(string $slug) : mixed
Parameters
$slug : string
Tags
codeCoverageIgnore

toJson()

Create a JSON representation of this object.

public toJson() : mixed

        
On this page

Search results