public function __construct($parent, $nodename, $identifier, $mockField = null) { $this->_parent = $parent; $this->_nodename = $nodename; $this->_identifier = $identifier; $this->reflFields = array($this->identifier => $mockField); }