Passed
Push — master ( a3af24...ced4f9 )
by Maciej
01:35
created

Rewrites::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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