NullModel   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 74
ccs 16
cts 16
cp 1
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A start() 0 4 1
A stop() 0 4 1
A unicast() 0 4 1
A broadcast() 0 4 1
A isStarted() 0 4 1
A isStopped() 0 4 1
A isConnected() 0 4 1
A getConnected() 0 4 1
1
<?php
2
3
namespace Dazzle\Channel\Model\Null;
4
5
use Dazzle\Channel\Model\ModelInterface;
6
use Dazzle\Event\BaseEventEmitter;
7
8
class NullModel extends BaseEventEmitter implements ModelInterface
9
{
10
    /**
11
     * @override
12
     * @inheritDoc
13
     */
14 1
    public function start($blockEvent = false)
15
    {
16 1
        return true;
17
    }
18
19
    /**
20
     * @override
21
     * @inheritDoc
22
     */
23 1
    public function stop($blockEvent = false)
24
    {
25 1
        return true;
26
    }
27
28
    /**
29
     * @override
30
     * @inheritDoc
31
     */
32 1
    public function unicast($alias, $message, $flags)
33
    {
34 1
        return true;
35
    }
36
37
    /**
38
     * @override
39
     * @inheritDoc
40
     */
41 1
    public function broadcast($message)
42
    {
43 1
        return [];
44
    }
45
46
    /**
47
     * @override
48
     * @inheritDoc
49
     */
50 1
    public function isStarted()
51
    {
52 1
        return false;
53
    }
54
55
    /**
56
     * @override
57
     * @inheritDoc
58
     */
59 1
    public function isStopped()
60
    {
61 1
        return true;
62
    }
63
64
    /**
65
     * @override
66
     * @inheritDoc
67
     */
68 1
    public function isConnected($alias)
69
    {
70 1
        return false;
71
    }
72
73
    /**
74
     * @override
75
     * @inheritDoc
76
     */
77 1
    public function getConnected()
78
    {
79 1
        return [];
80
    }
81
}
82