NullModel::start()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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