src/Parser/Wsdl/AbstractTagParser.php
protected function getModel(Tag $tag, $type = '')
    {
        switch ($tag->getName()) {
            case WsdlDocument::TAG_OPERATION:
                $model = $this->getMethodByName($tag->getAttributeName());
                break;
            default:
                if (empty($type)) {
                    $model = $this->getStructByName($tag->getAttributeName());
                } else {
                    $model = $this->getStructByNameAndType($tag->getAttributeName(), $type);
                }
                break;
        }
        return $model;
    }
protected function getModel(Tag $tag, $type = '')
    {
        switch ($tag->getName()) {
            case WsdlDocument::TAG_OPERATION:
                $model = $this->getMethodByName($tag->getAttributeName());
                break;
            default:
                if (empty($type)) {
                    $model = $this->getStructByName($tag->getAttributeName());
                } else {
                    $model = $this->getStructByNameAndType($tag->getAttributeName(), $type);
                }
                break;
        }
        return $model;
    }
protected function getModel ( Tag $ tag , $ type = '' ) { switch ( $ tag -> getName ( ) ) { case WsdlDocument :: TAG_OPERATION : $ model = $ this -> getMethodByName ( $ tag -> getAttributeName ( ) ) ; break ; default : if ( empty ( $ type ) ) { $ model = $ this -> getStructByName ( $ tag -> getAttributeName ( ) ) ; } else { $ model = $ this -> getStructByNameAndType ( $ tag -> getAttributeName ( ) , $ type ) ; } break ; } return $ model ; }
Return the model on which the method will be called
@param Tag $tag
@param string $type can be passed to specify the Struct type (inheritance)
@return Struct|Method|null
Return the model on which the method will be called