Completed
Push — master ( df9f00...ccd20f )
by dan
01:37
created

MessageCreatedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMessage() 0 4 1
1
<?php
2
3
namespace IrishDan\NotificationBundle\Event;
4
5
use IrishDan\NotificationBundle\Message\MessageInterface;
6
7
class MessageCreatedEvent
8
{
9
    const NAME = 'notification.message_created';
10
    protected $message;
11
12
    public function __construct(MessageInterface $message)
13
    {
14
        $this->message = $message;
15
    }
16
17
    /**
18
     * @return MessageInterface
19
     */
20
    public function getMessage()
21
    {
22
        return $this->message;
23
    }
24
}