/** @var \DOMElement $actions */
$actions =
$this->document->
getElementsByTagName('flow-actions'
)->
item(0
);
/** @var \DOMElement $action */
$action =
$actions->
getElementsByTagName('flow-action'
)->
item(0
);
/** @var \DOMElement $meta */
$meta =
$action->
getElementsByTagName('meta'
)->
item(0
);
$meta = Metadata::
fromXml($meta);
$parameter =
new Parameter(['id' => 'key'
]);
$this->parameters =
new Parameters([$parameter]);
$this->headers =
new Headers([$parameter]);
$inputFiled =
new InputField(['id' => 'key'
]);
$this->config =
new Config([$inputFiled]);
$this->action =
new Action([ 'meta' =>
$meta,
'headers' =>
$this->headers,
'parameters' =>
$this->parameters,
'config' =>
$this->config,
]);
}