Passed
Push — master ( 8392a0...119f32 )
by
unknown
02:41
created

MangoPayWebhookEvent::getDto()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * Created by Graham Owens ([email protected])
5
 * Company: PartFire Ltd (www.partfire.co.uk)
6
 * Console: Discovery
7
 *
8
 * User:    gra
9
 * Date:    21/01/17
10
 * Time:    00:37
11
 * Project: PartFire MangoPay Bundle
12
 * File:    MangoPayWebhookEvent.php
13
 *
14
 **/
15
namespace PartFire\MangoPayBundle\Event;
16
17
use PartFire\CommonBundle\Services\Output\CommonOutputInterface;
18
use PartFire\MangoPayBundle\Entity\Hook;
19
use Symfony\Component\EventDispatcher\Event;
20
21
class MangoPayWebhookEvent extends Event
22
{
23
    const NAME = 'partfire.mangopay.new_webhook';
24
25
    private $output;
26
    private $hook;
27
    private $dto;
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getHook() : Hook
33
    {
34
        return $this->hook;
35
    }
36
37
    /**
38
     * @param mixed $hook
39
     */
40
    public function setHook(Hook $hook)
41
    {
42
        $this->hook = $hook;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getOutput() : CommonOutputInterface
49
    {
50
        return $this->output;
51
    }
52
53
    /**
54
     * @param mixed $output
55
     */
56
    public function setOutput(CommonOutputInterface $output)
57
    {
58
        $this->output = $output;
59
    }
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getDto()
65
    {
66
        return $this->dto;
67
    }
68
69
    /**
70
     * @param mixed $dto
71
     */
72
    public function setDto($dto)
73
    {
74
        $this->dto = $dto;
75
    }
76
77
78
}