PostPaymentCartEvent::getPayment()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
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\SkuskuPayment;
8
9
/**
10
 * Class PostPaymentCartEvent
11
 * @package GGGGino\SkuskuCartBundle\Event
12
 */
13
class PostPaymentCartEvent extends FormFlowEvent
14
{
15
    /**
16
     * @var SkuskuPayment
17
     */
18
    private $payment;
19
20
    /**
21
     * @var
22
     */
23
    private $status;
24
25
    /**
26
     * @param FormFlowInterface $flow
27
     */
28
    public function __construct(FormFlowInterface $flow, SkuskuPayment $payment, $status)
29
    {
30
        parent::__construct($flow);
31
        $this->payment = $payment;
32
        $this->status = $status;
33
    }
34
35
    /**
36
     * @return SkuskuPayment
37
     */
38
    public function getPayment()
39
    {
40
        return $this->payment;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46
    public function getStatus()
47
    {
48
        return $this->status;
49
    }
50
}
51