Entity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A _getParams() 0 4 1
1
<?php
2
/**
3
 * CakeCMS Core
4
 *
5
 * This file is part of the of the simple cms based on CakePHP 3.
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @package     Core
10
 * @license     MIT
11
 * @copyright   MIT License http://www.opensource.org/licenses/mit-license.php
12
 * @link        https://github.com/CakeCMS/Core".
13
 * @author      Sergey Kalistratov <[email protected]>
14
 */
15
16
namespace Core\ORM\Entity;
17
18
use JBZoo\Data\Data;
19
use JBZoo\Data\JSON;
20
use Cake\ORM\Entity as CakeEntity;
21
22
/**
23
 * Class Entity
24
 *
25
 * @property    Data $params
26
 *
27
 * @package     Core\ORM\Entity
28
 */
29
class Entity extends CakeEntity
30
{
31
32
    /**
33
     * Create new current params field.
34
     *
35
     * @param   $params
36
     *
37
     * @return  JSON
38
     */
39
    protected function _getParams($params)
40
    {
41
        return new JSON($params);
42
    }
43
}
44