original_string: public function getDataTransferObjectName($object) {
  		$objectName = TypeHandling::getTypeForValue($object);
  
  		if (!array_key_exists($objectName, $this->classMappingConfiguration)) {
  			foreach (array_reverse($this->classNameToDtoClassNameReplaceFragments, TRUE) as $dtoClassNameFragment => $classNameFragment) {
  				$dtoClassName = str_replace($classNameFragment, $dtoClassNameFragment, $objectName);
  				if (class_exists($dtoClassName)) {
  					$this->classMappingConfiguration[$objectName] = $dtoClassName;
  					break;
  				}
  			}
  		}
  
  		if (!isset($this->classMappingConfiguration[$objectName])) {
  			throw new InvalidTargetException(sprintf('There is no DTO class name for "%s" objects.', $objectName), 1407499486);
  		}
  
  		return $this->classMappingConfiguration[$objectName];
  	}
code: public function getDataTransferObjectName($object) {
  		$objectName = TypeHandling::getTypeForValue($object);
  
  		if (!array_key_exists($objectName, $this->classMappingConfiguration)) {
  			foreach (array_reverse($this->classNameToDtoClassNameReplaceFragments, TRUE) as $dtoClassNameFragment => $classNameFragment) {
  				$dtoClassName = str_replace($classNameFragment, $dtoClassNameFragment, $objectName);
  				if (class_exists($dtoClassName)) {
  					$this->classMappingConfiguration[$objectName] = $dtoClassName;
  					break;
  				}
  			}
  		}
  
  		if (!isset($this->classMappingConfiguration[$objectName])) {
  			throw new InvalidTargetException(sprintf('There is no DTO class name for "%s" objects.', $objectName), 1407499486);
  		}
  
  		return $this->classMappingConfiguration[$objectName];
  	}
code_tokens: public function getDataTransferObjectName ( $ object ) { $ objectName = TypeHandling :: getTypeForValue ( $ object ) ; if ( ! array_key_exists ( $ objectName , $ this -> classMappingConfiguration ) ) { foreach ( array_reverse ( $ this -> classNameToDtoClassNameReplaceFragments , TRUE ) as $ dtoClassNameFragment => $ classNameFragment ) { $ dtoClassName = str_replace ( $ classNameFragment , $ dtoClassNameFragment , $ objectName ) ; if ( class_exists ( $ dtoClassName ) ) { $ this -> classMappingConfiguration [ $ objectName ] = $ dtoClassName ; break ; } } } if ( ! isset ( $ this -> classMappingConfiguration [ $ objectName ] ) ) { throw new InvalidTargetException ( sprintf ( 'There is no DTO class name for "%s" objects.' , $ objectName ) , 1407499486 ) ; } return $ this -> classMappingConfiguration [ $ objectName ] ; }
docstring: Returns the class name of the given DataTransferObject.
  
  @param $object
  @return string
  @throws InvalidTargetException
docstring_tokens: Returns the class name of the given DataTransferObject .