Failed Conditions
Pull Request — experimental/sf (#29)
by Kentaro
50:12 queued 39:05
created

PointRateTrait::getPointRate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Eccube\Entity;
15
16
use Doctrine\ORM\Mapping as ORM;
17
18
trait PointRateTrait
19
{
20
    /**
21
     * @var string
22
     *
23
     * @ORM\Column(name="point_rate", type="decimal", precision=10, scale=0, options={"unsigned":true}, nullable=true)
24
     */
25
    private $point_rate;
26
27
    /**
28
     * Set pointRate
29
     *
30
     * @param string $pointRate
31
     *
32
     * @return OrderItem
33
     */
34
    public function setPointRate($pointRate)
35
    {
36
        $this->point_rate = $pointRate;
37
38
        return $this;
39
    }
40
41
    /**
42
     * Get pointRate
43
     *
44
     * @return string
45
     */
46 193
    public function getPointRate()
47
    {
48 193
        return $this->point_rate;
49
    }
50
}
51