Completed
Pull Request — experimental/3.1 (#2435)
by chihiro
84:29 queued 21:04
created

PurchaseContext::create()   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 1
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 function __construct(ItemHolderInterface $originHolder = null)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
14
    {
15
        $this->originHolder = $originHolder;
16
    }
17
18
    public function getOriginHolder()
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
19
    {
20
        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