Failed Conditions
Push — experimental/3.1 ( 965511...751c7a )
by chihiro
21s
created

PurchaseContext   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A __construct() 0 4 1
A getOriginHolder() 0 4 1
A getUser() 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
    public static function create(ItemHolderInterface $originHolder = null)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
14
    {
15
        return new self($originHolder);
16
    }
17
18
    protected function __construct(ItemHolderInterface $originHolder = null)
19
    {
20
        $this->originHolder = $originHolder;
21
    }
22
23
    public function getOriginHolder()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
24
    {
25
        return $this->originHolder;
26
    }
27
28
    public function getUser()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
29
    {
30
        return $this->user;
31
    }
32
}
33