pixelfederation/swoole-bundle

View on GitHub
src/Bridge/Symfony/Container/Proxy/ContextualProxy.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace K911\Swoole\Bridge\Symfony\Container\Proxy;

use K911\Swoole\Bridge\Symfony\Container\ServicePool\ServicePool;

/**
 * @template RealObjectType of object
 */
interface ContextualProxy
{
    /**
     * @return ServicePool<RealObjectType>
     */
    public function getServicePool(): ServicePool;

    /**
     * @param ServicePool<RealObjectType> $servicePool
     *
     * @return ContextualProxy<RealObjectType>&RealObjectType
     */
    public static function staticProxyConstructor(ServicePool $servicePool): object;
}