public function getSoapElementType($complexType, $element) { $elements = $this->getSoapElements($complexType); if ($elements && isset($elements[$element])) { return $elements[$element]; } }