| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class CachedExtractor implements ClassMethodExtractor |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ClassMethodExtractor |
||
| 16 | */ |
||
| 17 | protected $mapper; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $cacheKey; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var CacheInterface |
||
| 26 | */ |
||
| 27 | private $cache; |
||
| 28 | |||
| 29 | public function __construct(ClassMethodExtractor $mapper, CacheInterface $cache, string $cacheKey) |
||
| 30 | { |
||
| 31 | $this->mapper = $mapper; |
||
| 32 | $this->cache = $cache; |
||
| 33 | $this->cacheKey = $cacheKey; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritDoc |
||
| 38 | */ |
||
| 39 | public function extractClassMethods(): array |
||
| 48 | } |
||
| 49 | } |
||
| 50 |