Config   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A _construct() 0 3 1
A getIdentities() 0 3 1
1
<?php
2
3
namespace Firegento\DevDashboard\Model;
4
5
use Firegento\DevDashboard\Api\Data\ConfigInterface;
6
use Magento\Framework\DataObject\IdentityInterface;
7
8
class Config extends \Magento\Framework\Model\AbstractModel implements ConfigInterface, IdentityInterface
9
{
10
    const CACHE_TAG = 'firegento_devdashboard_config';
11
12
    protected function _construct()
13
    {
14
        $this->_init(\Firegento\DevDashboard\Model\ResourceModel\Config::class);
15
    }
16
17
    public function getIdentities()
18
    {
19
        return [self::CACHE_TAG . '_' . $this->getId()];
20
    }
21
}
22