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

__construct() public method

Initializes the param node with the necessary data.
public __construct ( string $name = '', string $type = '', AppserverIo\Configuration\Interfaces\ValueInterface $nodeValue = null, boolean $constant = false, boolean $env = false )
$name string The params name
$type string The params data type
$nodeValue AppserverIo\Configuration\Interfaces\ValueInterface The params initial value
$constant boolean TRUE if the value is a constant, else FALSE
$env boolean TRUE if the value is an environment variable, else FALSE
    public function __construct($name = '', $type = '', ValueInterface $nodeValue = null, $constant = false, $env = false)
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->name = $name;
        $this->type = $type;
        $this->nodeValue = $nodeValue;
        $this->constant = $constant;
        $this->env = $env;
    }