Test Failed
Push — master ( 2a5b8d...41a437 )
by David
05:53
created

PrePersistOrderEvent::__construct()   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 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace GGGGino\SkuskuCartBundle\Event;
4
5
use Craue\FormFlowBundle\Event\FormFlowEvent;
6
use Craue\FormFlowBundle\Form\FormFlowInterface;
7
use GGGGino\SkuskuCartBundle\Model\SkuskuOrder;
8
use GGGGino\SkuskuCartBundle\Model\SkuskuPayment;
9
10
/**
11
 * Class PrePersistOrderEvent
12
 * @package GGGGino\SkuskuCartBundle\Event
13
 */
14
class PrePersistOrderEvent extends FormFlowEvent
15
{
16
    /**
17
     * @var SkuskuOrder
18
     */
19
    private $order;
20
21
    /**
22
     * @param FormFlowInterface $flow
23
     * @param SkuskuOrder $order
24
     */
25
    public function __construct(FormFlowInterface $flow, SkuskuOrder $order)
26
    {
27
        parent::__construct($flow);
28
        $this->order = $order;
29
    }
30
31
    /**
32
     * @return SkuskuOrder
33
     */
34
    public function getOrder()
35
    {
36
        return $this->order;
37
    }
38
}
39