Passed
Push — master ( ca7167...276d5c )
by Fabian
06:10
created

Config   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
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
namespace Firegento\DevDashboard\Model;
3
class Config extends \Magento\Framework\Model\AbstractModel implements \Firegento\DevDashboard\Api\Data\ConfigInterface, \Magento\Framework\DataObject\IdentityInterface
4
{
5
    const CACHE_TAG = 'firegento_devdashboard_config';
6
7
    protected function _construct()
8
    {
9
        $this->_init('Firegento\DevDashboard\Model\ResourceModel\Config');
10
    }
11
12
    public function getIdentities()
13
    {
14
        return [self::CACHE_TAG . '_' . $this->getId()];
15
    }
16
}
17