Completed
Pull Request — master (#131)
by De Cramer
05:13 queued 02:26
created

Record   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCheckpoints() 0 6 1
A setCheckpoints() 0 4 1
1
<?php
2
3
namespace eXpansion\Bundle\LocalRecords\Model;
4
5
use eXpansion\Bundle\LocalRecords\Model\Base\Record as BaseRecord;
6
7
/**
8
 * Skeleton subclass for representing a row from the 'record' table.
9
 *
10
 *
11
 *
12
 * You should add additional methods to this class to meet the
13
 * application requirements.  This class will only be generated as
14
 * long as it does not already exist in the output directory.
15
 *
16
 */
17
class Record extends BaseRecord
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function getCheckpoints()
23
    {
24
        $checkPoints = parent::getCheckpoints();
25
26
        return json_decode($checkPoints, true);
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32
    public function setCheckpoints($v)
33
    {
34
        return parent::setCheckpoints(json_encode($v));
35
    }
36
37
38
}
39