Completed
Push — master ( 0c1714...bbfa1f )
by Artem
01:41
created

FakeCentrifugo::publish()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
/*
3
 * This file is part of the FreshCentrifugoBundle.
4
 *
5
 * (c) Artem Henvald <[email protected]>
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
declare(strict_types=1);
12
13
namespace Fresh\CentrifugoBundle\Service;
14
15
/**
16
 * FakeCentrifugo.
17
 *
18
 * @author Artem Henvald <[email protected]>
19
 */
20
class FakeCentrifugo implements CentrifugoInterface
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function publish(array $data, string $channel): void
26
    {
27
        // noop
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function broadcast(array $data, array $channels): void
34
    {
35
        // noop
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function unsubscribe(string $user, string $channel): void
42
    {
43
        // noop
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function disconnect(string $user): void
50
    {
51
        // noop
52
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function presence(string $channel): array
58
    {
59
        return [];
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function presenceStats(string $channel): array
66
    {
67
        return [];
68
    }
69
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function history(string $channel): array
74
    {
75
        return [];
76
    }
77
78
    /**
79
     * {@inheritdoc}
80
     */
81
    public function historyRemove(string $channel): void
82
    {
83
        // noop
84
    }
85
86
    /**
87
     * {@inheritdoc}
88
     */
89
    public function channels(): array
90
    {
91
        return [];
92
    }
93
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function info(): array
98
    {
99
        return [];
100
    }
101
102
    /**
103
     * {@inheritdoc}
104
     */
105
    public function batchRequest(array $commands): array
106
    {
107
        return [];
108
    }
109
}
110