SystemMessage   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 44
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setBus() 0 4 1
A getBus() 0 4 1
A setMessage() 0 4 1
A getMessage() 0 4 1
1
<?php
2
/*
3
 * This file is part of the Borobudur-Bus package.
4
 *
5
 * (c) Hexacodelabs <http://hexacodelabs.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Borobudur\Bus\Message;
12
13
use Borobudur\Bus\BusInterface;
14
15
/**
16
 * @author      Iqbal Maulana <[email protected]>
17
 * @created     8/17/15
18
 */
19
class SystemMessage implements SystemMessageInterface
20
{
21
    /**
22
     * @var MessageInterface
23
     */
24
    protected $message;
25
26
    /**
27
     * @var BusInterface
28
     */
29
    protected $bus;
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function setBus(BusInterface $bus)
35
    {
36
        $this->bus = $bus;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function getBus()
43
    {
44
        return $this->bus;
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function setMessage(MessageInterface &$message)
51
    {
52
        $this->message = $message;
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function getMessage()
59
    {
60
        return $this->message;
61
    }
62
}
63