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

PurchaseContext::getUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
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
    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