original_string: protected function getTypeDefinitionInternal($repositoryId, $typeId)
      {
          if (empty($repositoryId)) {
              throw new CmisInvalidArgumentException('Repository id must not be empty!');
          }
  
          if (empty($typeId)) {
              throw new CmisInvalidArgumentException('Type id must not be empty!');
          }
  
          // build URL
          $url = $this->getRepositoryUrl($repositoryId, Constants::SELECTOR_TYPE_DEFINITION);
          $url->getQuery()->modify([Constants::PARAM_TYPE_ID => $typeId]);
  
          return $this->getJsonConverter()->convertTypeDefinition(
              (array) $this->readJson($url)
          );
      }
code: protected function getTypeDefinitionInternal($repositoryId, $typeId)
      {
          if (empty($repositoryId)) {
              throw new CmisInvalidArgumentException('Repository id must not be empty!');
          }
  
          if (empty($typeId)) {
              throw new CmisInvalidArgumentException('Type id must not be empty!');
          }
  
          // build URL
          $url = $this->getRepositoryUrl($repositoryId, Constants::SELECTOR_TYPE_DEFINITION);
          $url->getQuery()->modify([Constants::PARAM_TYPE_ID => $typeId]);
  
          return $this->getJsonConverter()->convertTypeDefinition(
              (array) $this->readJson($url)
          );
      }
code_tokens: protected function getTypeDefinitionInternal ( $ repositoryId , $ typeId ) { if ( empty ( $ repositoryId ) ) { throw new CmisInvalidArgumentException ( 'Repository id must not be empty!' ) ; } if ( empty ( $ typeId ) ) { throw new CmisInvalidArgumentException ( 'Type id must not be empty!' ) ; } // build URL $ url = $ this -> getRepositoryUrl ( $ repositoryId , Constants :: SELECTOR_TYPE_DEFINITION ) ; $ url -> getQuery ( ) -> modify ( [ Constants :: PARAM_TYPE_ID => $ typeId ] ) ; return $ this -> getJsonConverter ( ) -> convertTypeDefinition ( ( array ) $ this -> readJson ( $ url ) ) ; }
docstring: Retrieves a type definition.
  
  @param string $repositoryId
  @param string $typeId
  @return TypeDefinitionInterface|null
  @throws CmisInvalidArgumentException if repository id or type id is <code>null</code>
docstring_tokens: Retrieves a type definition .