Failed Conditions
Pull Request — experimental/3.1 (#2486)
by
unknown
68:04 queued 25:47
created

PurchaseContext::getUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Eccube\Service\PurchaseFlow;
4
5
use Eccube\Entity\ItemHolderInterface;
6
7
class PurchaseContext extends \SplObjectStorage
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
8
{
9
    private $user;
10
11
    private $originHolder;
12
13 51
    public function __construct(ItemHolderInterface $originHolder = null)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
14
    {
15 51
        $this->originHolder = $originHolder;
16
    }
17
18 18
    public function getOriginHolder()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
19
    {
20 18
        return $this->originHolder;
21
    }
22
23
    public function getUser()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
24
    {
25
        return $this->user;
26
    }
27
}
28