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

__construct() public method

Initializes the initial context node with the necessary data.
public __construct ( string $type = '', DescriptionNode $description = null, StorageNode $storage = null )
$type string The initial context type
$description DescriptionNode A short description
$storage StorageNode The default storage configuration
    public function __construct($type = '', DescriptionNode $description = null, StorageNode $storage = null)
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->type = $type;
        $this->description = $description;
        $this->storage = $storage;
    }