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,
                ];
            }
        }
    }
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,
                ];
            }
        }
    }
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 , ] ; } } }
const AFTER = 'AFTER';
const AFTER = AFTER ;