class NodeFactory

Node factory - instantiates Node objects or objects derived from the Node class

Properties

static protected $namespace

Methods

static mixed
getInstance(string $class = 'Node', string $name = 'default', int $type = Node::OBJECT, bool $isGroup = false)

Instantiates a Node object

Details

at line 83
static mixed getInstance(string $class = 'Node', string $name = 'default', int $type = Node::OBJECT, bool $isGroup = false)

Instantiates a Node object

Parameters

string $class The name of the class to instantiate
string $name An identifier for the new node
int $type Type of node, may be one of CONTAINER or OBJECT
bool $isGroup Whether this object has been created while grouping nodes

Return Value

mixed