__construct() __construct( $varName) Constructor. The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']). Parameters $varName