51Degrees Pipeline for PHP

fiftyone\pipeline\core\ElementData Class Reference

Detailed Description

Stores information created by a FlowElement based on FlowData.

Stored in FlowData.

Inheritance diagram for fiftyone\pipeline\core\ElementData:

[legend]

Collaboration diagram for fiftyone\pipeline\core\ElementData:

[legend]

Public Member Functions

 __construct (FlowElement $flowElement)
 __get (string $key)
 get (string $key)
 Get a value from the ElementData contents This calls the ElementData class' (often overridden) getInternal method.
 asDictionary ()
 Get the values contained in the ElementData instance as a dictionary of keys and values.
 getAsString (string $key)
 Helper method to get property as a string.
 getAsFloat (string $key)
 Helper method to get property as a float.
 getAsInteger (string $key)
 Helper method to get property as an int.

Data Fields

FlowElement $flowElement

Protected Member Functions

 getInternal (string $key)
 Called by the get() method Returns the requested property from the data.

Member Function Documentation

◆ __get()

fiftyone\pipeline\core\ElementData::__get ( string $key)
Returns
mixed

◆ asDictionary()

fiftyone\pipeline\core\ElementData::asDictionary ( )

Get the values contained in the ElementData instance as a dictionary of keys and values.

Returns
array<string, mixed>

Reimplemented in fiftyone\pipeline\core\ElementDataDictionary, and fiftyone\pipeline\engines\AspectDataDictionary.

◆ get()

fiftyone\pipeline\core\ElementData::get ( string $key)

Get a value from the ElementData contents This calls the ElementData class' (often overridden) getInternal method.

Parameters
string$keyProperty name
Returns
mixed

Reimplemented in fiftyone\pipeline\engines\AspectData.

◆ getInternal()

fiftyone\pipeline\core\ElementData::getInternal ( string $key)
protected

Called by the get() method Returns the requested property from the data.

Parameters
string$keyProperty name
Returns
mixed

Reimplemented in fiftyone\pipeline\core\ElementDataDictionary, and fiftyone\pipeline\engines\AspectDataDictionary.