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 | public function __construct(CacheItemPoolInterface $cachePool, LoggerInterface $logger) |
||
31 | |||
32 | /** |
||
33 | * @param string $name |
||
34 | * @param string $version |
||
35 | * @return Endpoint |
||
36 | */ |
||
37 | public function getEndpoint(string $name, string $version): Endpoint |
||
44 | |||
45 | /** |
||
46 | * @param string $name |
||
47 | * @param string $version |
||
48 | * @return CachingLoggingEndpoint |
||
49 | */ |
||
50 | public abstract function getCachingLoggingEndpoint(string $name, string $version): CachingLoggingEndpoint; |
||
51 | } |
||
52 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.