Documentation

Value implements YamlSerializable

Class Value

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Robin Glauser robin.glauser@cloudrexx.com

subpackage

core_module_templateeditor

Table of Contents

Interfaces

YamlSerializable
Class YamlSerializable

Properties

$name  : string
Option name
$value  : array<string|int, mixed>
Array with values

Methods

__construct()  : mixed
Value constructor.
getName()  : mixed
Get the name.
getValue()  : mixed
Get the saved value.
setName()  : mixed
Set the name.
setValue()  : mixed
Set the saved value.
yamlSerialize()  : array<string|int, mixed>
Serialize a class to use in a .yml file.

Properties

$value

Array with values

protected array<string|int, mixed> $value

Methods

__construct()

Value constructor.

public __construct( $name,  $value) : mixed
Parameters
$name :
$value :

getValue()

Get the saved value.

public getValue() : mixed

setName()

Set the name.

public setName(mixed $name) : mixed
Parameters
$name : mixed

setValue()

Set the saved value.

public setValue(mixed $value) : mixed
Parameters
$value : mixed

yamlSerialize()

Serialize a class to use in a .yml file.

public yamlSerialize() : array<string|int, mixed>

This should return a array which will be serialized by the caller.

Return values
array<string|int, mixed>

        
On this page

Search results