source/Spiral/ORM/Traits/SourceTrait.php
public static function source(): RecordSource
    {
        /**
         * Container to be received via global scope.
         *
         * @var ContainerInterface $container
         */
        //Via global scope
        $container = self::staticContainer();

        if (empty($container)) {
            //Via global scope
            throw new ScopeException(sprintf(
                "Unable to get '%s' source, no container scope is available",
                static::class
            ));
        }

        return $container->get(ORMInterface::class)->source(static::class);
    }
public static function source(): RecordSource
    {
        /**
         * Container to be received via global scope.
         *
         * @var ContainerInterface $container
         */
        //Via global scope
        $container = self::staticContainer();

        if (empty($container)) {
            //Via global scope
            throw new ScopeException(sprintf(
                "Unable to get '%s' source, no container scope is available",
                static::class
            ));
        }

        return $container->get(ORMInterface::class)->source(static::class);
    }
public static function source ( ) : RecordSource { /**
         * Container to be received via global scope.
         *
         * @var ContainerInterface $container
         */ //Via global scope $ container = self :: staticContainer ( ) ; if ( empty ( $ container ) ) { //Via global scope throw new ScopeException ( sprintf ( "Unable to get '%s' source, no container scope is available" , static :: class ) ) ; } return $ container -> get ( ORMInterface :: class ) -> source ( static :: class ) ; }
Instance of RecordSource associated with specific model.

@see   Component::staticContainer()
*
@return RecordSource

@throws ScopeException
Instance of RecordSource associated with specific model .