1 | <?php |
||
11 | abstract class CachingLoggingEndpointFactory implements EndpointFactory |
||
12 | { |
||
13 | /** |
||
14 | * @var CacheItemPoolInterface |
||
15 | */ |
||
16 | protected $cachePool; |
||
17 | /** |
||
18 | * @var LoggerInterface |
||
19 | */ |
||
20 | protected $logger; |
||
21 | |||
22 | /** |
||
23 | * CachingEndpointFactory constructor. |
||
24 | * @param CacheItemPoolInterface $cachePool |
||
25 | * @param LoggerInterface $logger |
||
26 | */ |
||
27 | 1 | public function __construct(CacheItemPoolInterface $cachePool, LoggerInterface $logger) |
|
32 | |||
33 | /** |
||
34 | * @param string $name |
||
35 | * @param string $version |
||
36 | * @return Endpoint |
||
37 | */ |
||
38 | 1 | public function getEndpoint(string $name, string $version): Endpoint |
|
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | * @param string $version |
||
49 | * @return CachingLoggingEndpoint |
||
50 | */ |
||
51 | public abstract function getCachingLoggingEndpoint(string $name, string $version): CachingLoggingEndpoint; |
||
52 | } |
||
53 |