for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SteffenBrand\DmnDecisionTables\Model;
/**
* Class Input
* @package SteffenBrand\DmnDecisionTables\Model
*/
class Input implements DmnConvertibleInterface
{
* @var string
private $label;
private $name;
private $type;
* Input constructor.
* @param string $label
* @param string $name
* @param string $type
public function __construct($label, $name, $type)
$this->label = $label;
$this->name = $name;
$this->type = $type;
}
* Returns an XML representation of an input.
*
* @return string
public function toDMN()
return
'<input id="' . uniqid('input') . '" label="' . $this->label . '">' .
'<inputExpression id="' . uniqid('inputExpression') . '" typeRef="' . $this->type . '">' .
'<text>' . $this->name . '</text>' .
'</inputExpression>' .
'</input>';
public function getLabel()
return $this->label;
public function getName()
return $this->name;
public function getType()
return $this->type;