PHP Класс raoul2000\workflow\base\WorkflowBaseObject

It mainly provides a way to store additional properties without the need to declare them in the class definition. Theses properties are called **metadata** and stored into an array. They can be accessed like regular class properties.
Наследование: extends yii\base\Object
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( array $config = [] ) Construct a workflow object.
__get ( $name )
getId ( ) : string
getMetadata ( string $paramName = null, mixed $defaultValue = null ) : mixed Returns the value of the metadata with namer $paramName.
getSource ( ) : raoul2000\workflow\source\IWorkflowSource Returns the source workflow component used to create this instance.
hasMetadata ( string $paramName ) : boolean Test if a metadata parameter is defined.

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

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

Construct a workflow object.
public __construct ( array $config = [] )
$config array

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

public __get ( $name )

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

abstract public getId ( ) : string
Результат string the object identifier

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

If no $paramNameis provided, this method returns an array containing all metadata parameters.
public getMetadata ( string $paramName = null, mixed $defaultValue = null ) : mixed
$paramName string when null the method returns the complet metadata array, otherwise it returns the value of the correponding metadata.
$defaultValue mixed
Результат mixed

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

Returns the source workflow component used to create this instance.
public getSource ( ) : raoul2000\workflow\source\IWorkflowSource
Результат raoul2000\workflow\source\IWorkflowSource the source instance or null if no source was been provided

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

Test if a metadata parameter is defined.
public hasMetadata ( string $paramName ) : boolean
$paramName string the metadata parameter name
Результат boolean TRUE if the metadata parameter exists, FALSE otherwise