original_string: public static function getEntityNameFromClassName(string $className)
      {
          $entityName = constant(sprintf(self::ENTITY_NAME_CONST_FORMAT, $className));
  
          if ($entityName === AbstractEntity::ENTITY_NAME or !is_string($entityName)) {
              throw new NoEntityNameException($className);
          }
  
          return $entityName;
      }
code: public static function getEntityNameFromClassName(string $className)
      {
          $entityName = constant(sprintf(self::ENTITY_NAME_CONST_FORMAT, $className));
  
          if ($entityName === AbstractEntity::ENTITY_NAME or !is_string($entityName)) {
              throw new NoEntityNameException($className);
          }
  
          return $entityName;
      }
code_tokens: public static function getEntityNameFromClassName ( string $ className ) { $ entityName = constant ( sprintf ( self :: ENTITY_NAME_CONST_FORMAT , $ className ) ) ; if ( $ entityName === AbstractEntity :: ENTITY_NAME or ! is_string ( $ entityName ) ) { throw new NoEntityNameException ( $ className ) ; } return $ entityName ; }
docstring: Gets an entity name from an entity class name if it provides an ENTITY_NAME constant
  
  @param string $className
  
  @return string
docstring_tokens: Gets an entity name from an entity class name if it provides an ENTITY_NAME constant