AppserverIo\Appserver\Core\Api\Node\HandlerNode::__construct PHP Méthode

__construct() public méthode

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