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

Record::getCheckpoints()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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