@@ 26-65 (lines=40) @@ | ||
23 | * |
|
24 | * @author Brian Smith <[email protected]> |
|
25 | */ |
|
26 | class CallerId extends Response |
|
27 | { |
|
28 | /** |
|
29 | * @var string |
|
30 | */ |
|
31 | private $name; |
|
32 | ||
33 | /** |
|
34 | * @var string |
|
35 | */ |
|
36 | private $number; |
|
37 | ||
38 | /** |
|
39 | * @return string |
|
40 | */ |
|
41 | public function getName() |
|
42 | { |
|
43 | return $this->name; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return string |
|
48 | */ |
|
49 | public function getNumber() |
|
50 | { |
|
51 | return $this->number; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param string $response |
|
56 | */ |
|
57 | public function __construct($response) |
|
58 | { |
|
59 | parent::__construct($response); |
|
60 | ||
61 | $this->name = $this->getResponseValue('name'); |
|
62 | $this->number = $this->getResponseValue('number'); |
|
63 | } |
|
64 | ||
65 | } |
|
66 |
@@ 26-65 (lines=40) @@ | ||
23 | * |
|
24 | * @author Brian Smith <[email protected]> |
|
25 | */ |
|
26 | class FormatLangPair extends Response |
|
27 | { |
|
28 | /** |
|
29 | * @var string |
|
30 | */ |
|
31 | private $format; |
|
32 | ||
33 | /** |
|
34 | * @var string |
|
35 | */ |
|
36 | private $language; |
|
37 | ||
38 | /** |
|
39 | * @return string |
|
40 | */ |
|
41 | public function getFormat() |
|
42 | { |
|
43 | return $this->format; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return string |
|
48 | */ |
|
49 | public function getLanguage() |
|
50 | { |
|
51 | return $this->language; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param string $response |
|
56 | */ |
|
57 | public function __construct($response) |
|
58 | { |
|
59 | parent::__construct($response); |
|
60 | ||
61 | $this->format = $this->getResponseValue('format'); |
|
62 | $this->language = $this->getResponseValue('language'); |
|
63 | } |
|
64 | ||
65 | } |
|
66 |
@@ 26-64 (lines=39) @@ | ||
23 | * |
|
24 | * @author Brian Smith <[email protected]> |
|
25 | */ |
|
26 | class MissingParams extends Response |
|
27 | { |
|
28 | /** |
|
29 | * @var string Indicates the type of this message. |
|
30 | */ |
|
31 | private $type; |
|
32 | ||
33 | /** |
|
34 | * @var array A list of the missing parameters |
|
35 | */ |
|
36 | private $params; |
|
37 | ||
38 | /** |
|
39 | * @return string Indicates the type of this message. |
|
40 | */ |
|
41 | public function getType() |
|
42 | { |
|
43 | return $this->type; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return array A list of the missing parameters |
|
48 | */ |
|
49 | public function getParams() |
|
50 | { |
|
51 | return $this->params; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param string $response |
|
56 | */ |
|
57 | public function __construct($response) |
|
58 | { |
|
59 | parent::__construct($response); |
|
60 | ||
61 | $this->type = $this->getResponseValue('type'); |
|
62 | $this->params = $this->getResponseValue('params'); |
|
63 | } |
|
64 | } |
|
65 |
@@ 26-65 (lines=40) @@ | ||
23 | * |
|
24 | * @author Brian Smith <[email protected]> |
|
25 | */ |
|
26 | class SetId extends Response |
|
27 | { |
|
28 | /** |
|
29 | * @var string Effective user id. |
|
30 | */ |
|
31 | private $user; |
|
32 | ||
33 | /** |
|
34 | * @var string Effective group id. |
|
35 | */ |
|
36 | private $group; |
|
37 | ||
38 | /** |
|
39 | * @return string Effective user id. |
|
40 | */ |
|
41 | public function getUser() |
|
42 | { |
|
43 | return $this->user; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return string Effective group id. |
|
48 | */ |
|
49 | public function getGroup() |
|
50 | { |
|
51 | return $this->group; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param string $response |
|
56 | */ |
|
57 | public function __construct($response) |
|
58 | { |
|
59 | parent::__construct($response); |
|
60 | ||
61 | $this->user = $this->getResponseValue('user'); |
|
62 | $this->group = $this->getResponseValue('group'); |
|
63 | } |
|
64 | ||
65 | } |
|
66 |
@@ 26-65 (lines=40) @@ | ||
23 | * |
|
24 | * @author Brian Smith <[email protected]> |
|
25 | */ |
|
26 | class StoredRecording extends Response |
|
27 | { |
|
28 | /** |
|
29 | * @var string |
|
30 | */ |
|
31 | private $format; |
|
32 | ||
33 | /** |
|
34 | * @var string |
|
35 | */ |
|
36 | private $name; |
|
37 | ||
38 | /** |
|
39 | * @return string |
|
40 | */ |
|
41 | public function getFormat() |
|
42 | { |
|
43 | return $this->format; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return string |
|
48 | */ |
|
49 | public function getName() |
|
50 | { |
|
51 | return $this->name; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param string $response |
|
56 | */ |
|
57 | public function __construct($response) |
|
58 | { |
|
59 | parent::__construct($response); |
|
60 | ||
61 | $this->format = $this->getResponseValue('format'); |
|
62 | $this->name = $this->getResponseValue('name'); |
|
63 | } |
|
64 | ||
65 | } |
|
66 |
@@ 26-65 (lines=40) @@ | ||
23 | * |
|
24 | * @author Brian Smith <[email protected]> |
|
25 | */ |
|
26 | class TextMessageVariable extends Response |
|
27 | { |
|
28 | /** |
|
29 | * @var string A unique key identifying the variable. |
|
30 | */ |
|
31 | private $key; |
|
32 | ||
33 | /** |
|
34 | * @var string The value of the variable. |
|
35 | */ |
|
36 | private $value; |
|
37 | ||
38 | /** |
|
39 | * @return string A unique key identifying the variable. |
|
40 | */ |
|
41 | public function getKey() |
|
42 | { |
|
43 | return $this->key; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return string The value of the variable. |
|
48 | */ |
|
49 | public function getValue() |
|
50 | { |
|
51 | return $this->value; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param string $response |
|
56 | */ |
|
57 | public function __construct($response) |
|
58 | { |
|
59 | parent::__construct($response); |
|
60 | ||
61 | $this->key = $this->getResponseValue('key'); |
|
62 | $this->value = $this->getResponseValue('value'); |
|
63 | } |
|
64 | ||
65 | } |
|
66 |