Failed Conditions
Pull Request — experimental/3.1 (#2486)
by
unknown
92:49 queued 86:04
created

PurchaseContext   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUser() 0 4 1
A getOriginHolder() 0 4 1
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