original_string: public function getUriForDiagrammType($type)
      {
          switch ($type) {
              case Diagramm::TYPE_ACTIVITY:
                  $uri = $this->getOptions()->getYumlActivityDiagrammUrl();
                  break;
              case Diagramm::TYPE_CLASS:
                  $uri = $this->getOptions()->getYumlClassDiagrammUrl();
                  break;
              case Diagramm::TYPE_DIAGRAMM:
                  throw new \InvalidArgumentException('Unsupported diagramm type "' . $type . '"');
                  break;
              case Diagramm::TYPE_USE_CASE:
                  $uri = $this->getOptions()->getYumlUseCaseDiagrammUrl();
                  break;
              default:
                  throw new \InvalidArgumentException('Unkown diagramm type "' . $type . '"');
                  break;
          }
          return $uri;
      }
code: public function getUriForDiagrammType($type)
      {
          switch ($type) {
              case Diagramm::TYPE_ACTIVITY:
                  $uri = $this->getOptions()->getYumlActivityDiagrammUrl();
                  break;
              case Diagramm::TYPE_CLASS:
                  $uri = $this->getOptions()->getYumlClassDiagrammUrl();
                  break;
              case Diagramm::TYPE_DIAGRAMM:
                  throw new \InvalidArgumentException('Unsupported diagramm type "' . $type . '"');
                  break;
              case Diagramm::TYPE_USE_CASE:
                  $uri = $this->getOptions()->getYumlUseCaseDiagrammUrl();
                  break;
              default:
                  throw new \InvalidArgumentException('Unkown diagramm type "' . $type . '"');
                  break;
          }
          return $uri;
      }
code_tokens: public function getUriForDiagrammType ( $ type ) { switch ( $ type ) { case Diagramm :: TYPE_ACTIVITY : $ uri = $ this -> getOptions ( ) -> getYumlActivityDiagrammUrl ( ) ; break ; case Diagramm :: TYPE_CLASS : $ uri = $ this -> getOptions ( ) -> getYumlClassDiagrammUrl ( ) ; break ; case Diagramm :: TYPE_DIAGRAMM : throw new \ InvalidArgumentException ( 'Unsupported diagramm type "' . $ type . '"' ) ; break ; case Diagramm :: TYPE_USE_CASE : $ uri = $ this -> getOptions ( ) -> getYumlUseCaseDiagrammUrl ( ) ; break ; default : throw new \ InvalidArgumentException ( 'Unkown diagramm type "' . $ type . '"' ) ; break ; } return $ uri ; }
docstring: Returns the URI for the yuml service for a diagramm type
  
  @param string $type
  @throws \InvalidArgumentException
  @return string
docstring_tokens: Returns the URI for the yuml service for a diagramm type