original_string: protected static function registerRelations()
      {
          if (!static::$relations) {
              $supported = [
                  HasOne::class => HasOneWrapper::class,
                  BelongsTo::class => BelongsToWrapper::class,
                  BelongsToMany::class => BelongsToManyWrapper::class,
                  HasMany::class => HasManyWrapper::class,
              ];
  
              static::$relations = Collection::make([]);
  
              foreach ($supported as $rel => $wrapperName) {
                  static::$relations[$rel] = [
                      'className' => $wrapperName,
                  ];
              }
          }
      }
code: protected static function registerRelations()
      {
          if (!static::$relations) {
              $supported = [
                  HasOne::class => HasOneWrapper::class,
                  BelongsTo::class => BelongsToWrapper::class,
                  BelongsToMany::class => BelongsToManyWrapper::class,
                  HasMany::class => HasManyWrapper::class,
              ];
  
              static::$relations = Collection::make([]);
  
              foreach ($supported as $rel => $wrapperName) {
                  static::$relations[$rel] = [
                      'className' => $wrapperName,
                  ];
              }
          }
      }
code_tokens: protected static function registerRelations ( ) { if ( ! static :: $ relations ) { $ supported = [ HasOne :: class => HasOneWrapper :: class , BelongsTo :: class => BelongsToWrapper :: class , BelongsToMany :: class => BelongsToManyWrapper :: class , HasMany :: class => HasManyWrapper :: class , ] ; static :: $ relations = Collection :: make ( [ ] ) ; foreach ( $ supported as $ rel => $ wrapperName ) { static :: $ relations [ $ rel ] = [ 'className' => $ wrapperName , ] ; } } }
docstring: const AFTER = 'AFTER';
docstring_tokens: const AFTER = AFTER ;