Completed
Push — 2.x-dev-kit ( 8d77e1 )
by
unknown
28:22 queued 25:50
created

ConsumerEvent::getReturnInfo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Sonata project.
5
 *
6
 * (c) Thomas Rabaix <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sonata\NotificationBundle\Consumer;
13
14
use Sonata\NotificationBundle\Model\MessageInterface;
15
use Symfony\Component\EventDispatcher\Event;
16
17
class ConsumerEvent extends Event implements ConsumerEventInterface
18
{
19
    /**
20
     * @var MessageInterface
21
     */
22
    protected $message;
23
24
    /**
25
     * @var ConsumerReturnInfo
26
     */
27
    protected $returnInfo;
28
29
    /**
30
     * @param MessageInterface $message
31
     */
32
    public function __construct(MessageInterface $message)
33
    {
34
        $this->message = $message;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getMessage()
41
    {
42
        return $this->message;
43
    }
44
45
    /**
46
     * @param ConsumerReturnInfo $returnInfo
47
     */
48
    public function setReturnInfo($returnInfo)
49
    {
50
        $this->returnInfo = $returnInfo;
51
    }
52
53
    /**
54
     * @return ConsumerReturnInfo
55
     */
56
    public function getReturnInfo()
57
    {
58
        return $this->returnInfo;
59
    }
60
}
61