

def to_obj(self, return_obj=None, ns_info=None):
    if (not return_obj):
        return_obj = self._binding_class()
    super(KillChainPhase, self).to_obj(return_obj=return_obj, ns_info=ns_info)
    return_obj.phase_id = self.phase_id
    return_obj.name = self.name
    return_obj.ordinality = self.ordinality
    return return_obj

dataset/ETHPy150Open STIXProject/python-stix/stix/common/kill_chains/__init__.py KillChainPhase.to_obj/original