protected function determineLoader($source): LoaderInterface
    {
        expect_type($source, ['object', 'string']);

        return is_object($source)
            ? $this->determineLoaderFromClass($source)
            : $this->determineLoaderFromPath($source);
    }
protected function determineLoader($source): LoaderInterface
    {
        expect_type($source, ['object', 'string']);

        return is_object($source)
            ? $this->determineLoaderFromClass($source)
            : $this->determineLoaderFromPath($source);
    }
protected function determineLoader ( $ source ) : LoaderInterface { expect_type ( $ source , [ 'object' , 'string' ] ) ; return is_object ( $ source ) ? $ this -> determineLoaderFromClass ( $ source ) : $ this -> determineLoaderFromPath ( $ source ) ; }
Determine loader from source

@param object|string $source
@return LoaderInterface
@throws NoLoaderException
Determine loader from source