public function __construct($type = '', FormatterNode $formatter = null, array $params = array()) { // initialize the UUID $this->setUuid($this->newUuid()); // set the data $this->type = $type; $this->formatter = $formatter; $this->params = $params; }