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

PrePersistOrderEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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