Passed
Push — master ( 34bc8c...92daf4 )
by
unknown
02:28
created

MangoPayWebhookEvent::setOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
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
28
    /**
29
     * @return mixed
30
     */
31
    public function getHook() : Hook
32
    {
33
        return $this->hook;
34
    }
35
36
    /**
37
     * @param mixed $hook
38
     */
39
    public function setHook(Hook $hook)
40
    {
41
        $this->hook = $hook;
42
    }
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getOutput() : CommonOutputInterface
48
    {
49
        return $this->output;
50
    }
51
52
    /**
53
     * @param mixed $output
54
     */
55
    public function setOutput(CommonOutputInterface $output)
56
    {
57
        $this->output = $output;
58
    }
59
60
}