1 | <?php |
||
6 | class LaraElephantIO |
||
7 | { |
||
8 | /** |
||
9 | * @var \ElephantIO\Client |
||
10 | */ |
||
11 | protected $elephant; |
||
12 | |||
13 | /** |
||
14 | * @var boolean |
||
15 | */ |
||
16 | protected $init = false; |
||
17 | |||
18 | /** |
||
19 | * Construct, initialize o elephant.io |
||
20 | * |
||
21 | * @param ElephantIO $elephant |
||
22 | */ |
||
23 | public function __construct(ElephantIO $elephant) |
||
27 | |||
28 | /** |
||
29 | * Conectar |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function connect() |
||
40 | |||
41 | /** |
||
42 | * Emits a message through the engine |
||
43 | * |
||
44 | * @param string $event |
||
45 | * @param array $args |
||
46 | * |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function emit($event, array $args) |
||
55 | |||
56 | /** |
||
57 | * Call Methods Elephant |
||
58 | * |
||
59 | * @param string $method |
||
60 | * @param array $args |
||
61 | */ |
||
62 | public function __call($method, $args) |
||
68 | |||
69 | /** |
||
70 | * Destruct, close o elephant.io |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | public function close() |
||
82 | |||
83 | /** |
||
84 | * Destruct, close o elephant.io |
||
85 | */ |
||
86 | public function __destruct() |
||
90 | } |
||
91 |