AppserverIo\Appserver\Core\Api\Node\FormatterNode::__construct PHP Method

__construct() public method

Initializes the formatter node with the necessary data.
public __construct ( string $type = '', array $params = [] )
$type string The formatters class name
$params array The formatter params
    public function __construct($type = '', array $params = array())
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->type = $type;
        $this->params = $params;
    }