| 1 | <?php |
||
| 11 | abstract class CachingEndpointFactory extends LoggingEndpointFactory |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var CacheItemPoolInterface |
||
| 15 | */ |
||
| 16 | protected $cachePool; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * CachingEndpointFactory constructor. |
||
| 20 | * @param CacheItemPoolInterface $cachePool |
||
| 21 | * @param LoggerInterface $logger |
||
| 22 | */ |
||
| 23 | 1 | public function __construct(CacheItemPoolInterface $cachePool, LoggerInterface $logger) |
|
| 28 | |||
| 29 | 1 | protected function getLoggingEndpoint(string $name, string $version): LoggingEndpoint |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $name |
||
| 38 | * @param string $version |
||
| 39 | * @return CachingEndpoint |
||
| 40 | */ |
||
| 41 | protected abstract function getCachingEndpoint(string $name, string $version): CachingEndpoint; |
||
| 42 | } |
||
| 43 |