public function createFromFragmentType(TES5FragmentType $fragmentType) { $localScope = new TES5LocalScope(); switch ($fragmentType) { case TES5FragmentType::T_TIF(): $localScope->addVariable(new TES5LocalVariable("akSpeakerRef", TES5BasicType::T_OBJECTREFERENCE(), [TES5LocalVariableParameterMeaning::ACTIVATOR()])); break; case TES5FragmentType::T_PF(): $localScope->addVariable(new TES5LocalVariable("akActor", TES5BasicType::T_ACTOR(), [TES5LocalVariableParameterMeaning::ACTIVATOR()])); break; case TES5FragmentType::T_QF(): break; } return $localScope; }