Rewrites   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * File: Rewrites.php
6
 *
7
 * @author      Maciej Sławik <[email protected]>
8
 * Github:      https://github.com/maciejslawik
9
 */
10
11
namespace MSlwk\XmlUrlRewrites\Model\Cache;
12
13
use Magento\Framework\App\Cache\Type\FrontendPool;
14
use Magento\Framework\Cache\Frontend\Decorator\TagScope;
15
16
/**
17
 * Class Rewrites
18
 * @package MSlwk\XmlUrlRewrites\Model\Cache
19
 */
20
class Rewrites extends TagScope
21
{
22
    const TYPE_IDENTIFIER = 'xml_url_rewrites';
23
    const CACHE_TAG = 'XML_URL_REWRITES';
24
25
    /**
26
     * Rewrites constructor.
27
     * @param FrontendPool $cacheFrontendPool
28
     */
29
    public function __construct(FrontendPool $cacheFrontendPool)
30
    {
31
        parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
32
    }
33
}
34