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