Completed
Push — master ( 76453f...1c4278 )
by Julien
06:31
created

ZMQPushServer::send()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Eole\Sandstone\Push\Bridge\ZMQ;
4
5
use ZMQSocket;
6
use Eole\Sandstone\Push\PushServerInterface;
7
8
class ZMQPushServer implements PushServerInterface
9
{
10
    /**
11
     * @var ZMQSocket
12
     */
13
    private $zmqSocket;
14
15
    /**
16
     * @param ZMQSocket $zmqSocket
17
     */
18
    public function __construct(ZMQSocket $zmqSocket)
19
    {
20
        $this->zmqSocket = $zmqSocket;
21
    }
22
23
    /**
24
     * {@InheritDoc}
25
     */
26
    public function send($message)
27
    {
28
        $this->zmqSocket->send($message);
29
    }
30
}
31