-
Notifications
You must be signed in to change notification settings - Fork 1
/
DoesNotReceive.php
54 lines (49 loc) · 1.22 KB
/
DoesNotReceive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace SmsGatewayBundle;
trait DoesNotReceive
{
/**
* Checks the server for messages and returns their results.
*
* @param array $options
*
* @return array
*/
public function checkMessages(array $options = [])
{
throw new \RuntimeException('Receive methods are not support with the this driver.');
}
/**
* Gets a single message by it's ID.
*
* @param string|int $messageId
*
* @throws \RuntimeException
*/
public function getMessage($messageId)
{
throw new \RuntimeException('Receive methods are not support with the this driver.');
}
/**
* Receives an incoming message via REST call.
*
* @param mixed $raw
*
* @throws \RuntimeException
*/
public function receive($raw)
{
throw new \RuntimeException('Receive methods are not support with the this driver.');
}
/**
* Creates many IncomingMessage objects and sets all of the properties.
*
* @param string $rawMessage
*
* @return mixed
*/
protected function processReceive($rawMessage)
{
throw new \RuntimeException('Receive methods are not support with this driver.');
}
}