public function __construct($type, $instanceId = null) { $this->type = $type; $this->instanceId = $instanceId; }