PostPaymentCartEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPayment() 0 3 1
A getStatus() 0 3 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\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