PHP Класс DataTemplateComponent

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$value

Открытые методы

Метод Описание
__construct ( mixed $value )
generate ( array $values ) : mixed Generate a data structure from the template using the values supplied.
match ( mixed $structure, &$warnings = [] ) : array | null Match the template against a structure and extract values.

Описание методов

__construct() публичный Метод

public __construct ( mixed $value )
$value mixed

generate() абстрактный публичный Метод

Generate a data structure from the template using the values supplied.
abstract public generate ( array $values ) : mixed
$values array
Результат mixed

match() абстрактный публичный Метод

Match the template against a structure and extract values.
abstract public match ( mixed $structure, &$warnings = [] ) : array | null
$structure mixed
Результат array | null Extracted values, or null if matching failed

Описание свойств

$value защищенное свойство

protected $value