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