original_string: public function registerCustomTypes(): void
      {
          // already registered
          if (\Doctrine\DBAL\Types\Type::hasType('neuralyzer_enum')) {
              return;
          }
  
          // Else register
          // Manage specific types such as enum
          \Doctrine\DBAL\Types\Type::addType(
              'neuralyzer_enum',
              'Edyan\Neuralyzer\Doctrine\Type\Enum'
          );
          $platform = $this->conn->getDatabasePlatform();
          $platform->registerDoctrineTypeMapping('enum', 'neuralyzer_enum');
          $platform->registerDoctrineTypeMapping('bit', 'boolean');
      }
code: public function registerCustomTypes(): void
      {
          // already registered
          if (\Doctrine\DBAL\Types\Type::hasType('neuralyzer_enum')) {
              return;
          }
  
          // Else register
          // Manage specific types such as enum
          \Doctrine\DBAL\Types\Type::addType(
              'neuralyzer_enum',
              'Edyan\Neuralyzer\Doctrine\Type\Enum'
          );
          $platform = $this->conn->getDatabasePlatform();
          $platform->registerDoctrineTypeMapping('enum', 'neuralyzer_enum');
          $platform->registerDoctrineTypeMapping('bit', 'boolean');
      }
code_tokens: public function registerCustomTypes ( ) : void { // already registered if ( \ Doctrine \ DBAL \ Types \ Type :: hasType ( 'neuralyzer_enum' ) ) { return ; } // Else register // Manage specific types such as enum \ Doctrine \ DBAL \ Types \ Type :: addType ( 'neuralyzer_enum' , 'Edyan\Neuralyzer\Doctrine\Type\Enum' ) ; $ platform = $ this -> conn -> getDatabasePlatform ( ) ; $ platform -> registerDoctrineTypeMapping ( 'enum' , 'neuralyzer_enum' ) ; $ platform -> registerDoctrineTypeMapping ( 'bit' , 'boolean' ) ; }
docstring: Add a custom enum type
  
  @return void
  @throws \Doctrine\DBAL\DBALException
docstring_tokens: Add a custom enum type