Group
implements
JsonSerializable, Persistable
Interfaces, Classes, Traits and Enums
- JsonSerializable
- Persistable
Table of Contents
-
$children
: array<string|int, mixed>
-
$color
: string
-
$expand
: bool
-
$title
: string
-
$type
: string
-
__construct()
: mixed
-
bsonSerialize()
: array<string|int, mixed>
-
bsonUnserialize()
: void
-
fromArray()
: self
-
jsonSerialize()
: array<string|int, mixed>
-
setChildren()
: self
-
setColor()
: self
-
toArray()
: array<string|int, mixed>
-
isValidHexColor()
: bool
$children
private
array<string|int, mixed>
$children
= []
$color
private
string
$color
$expand
private
bool
$expand
$title
private
string
$title
$type
private
string
$type
= 'group'
__construct()
public
__construct(mixed $title, mixed $color[, mixed $expand = true ]) : mixed
Parameters
-
$title
: mixed
-
-
$color
: mixed
-
-
$expand
: mixed
= true
-
Return values
mixed
—
bsonSerialize()
public
bsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
bsonUnserialize()
public
bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
-
$data
: array<string|int, mixed>
-
Return values
void
—
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
-
$data
: array<string|int, mixed>
-
Return values
self
—
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
setChildren()
public
setChildren(array<string|int, mixed> $children) : self
Parameters
-
$children
: array<string|int, mixed>
-
Return values
self
—
setColor()
public
setColor(string $color) : self
Parameters
-
$color
: string
-
Return values
self
—
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
isValidHexColor()
private
isValidHexColor(mixed $color) : bool
Parameters
-
$color
: mixed
-
Return values
bool
—