| @@ 26-79 (lines=54) @@ | ||
| 23 | * |
|
| 24 | * @author Brian Smith <[email protected]> |
|
| 25 | */ |
|
| 26 | class DialplanCep extends Response |
|
| 27 | { |
|
| 28 | /** |
|
| 29 | * @var string Context in the dialplan |
|
| 30 | */ |
|
| 31 | private $context; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var string Extension in the dialplan |
|
| 35 | */ |
|
| 36 | private $exten; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var int Priority in the dialplan |
|
| 40 | */ |
|
| 41 | private $priority; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @return string Context in the dialplan |
|
| 45 | */ |
|
| 46 | public function getContext() |
|
| 47 | { |
|
| 48 | return $this->context; |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @return string Extension in the dialplan |
|
| 53 | */ |
|
| 54 | public function getExten() |
|
| 55 | { |
|
| 56 | return $this->exten; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @return int Priority in the dialplan |
|
| 61 | */ |
|
| 62 | public function getPriority() |
|
| 63 | { |
|
| 64 | return $this->priority; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param string $response |
|
| 69 | */ |
|
| 70 | public function __construct($response) |
|
| 71 | { |
|
| 72 | parent::__construct($response); |
|
| 73 | ||
| 74 | $this->context = $this->response->context; |
|
| 75 | $this->exten = $this->response->exten; |
|
| 76 | $this->priority = $this->response->priority; |
|
| 77 | } |
|
| 78 | ||
| 79 | } |
|
| 80 | ||
| @@ 26-79 (lines=54) @@ | ||
| 23 | * |
|
| 24 | * @author Brian Smith <[email protected]> |
|
| 25 | */ |
|
| 26 | class Mailbox extends Response |
|
| 27 | { |
|
| 28 | /** |
|
| 29 | * @var string Name of the mailbox. |
|
| 30 | */ |
|
| 31 | private $name; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * @var int Count of new messages in the mailbox. |
|
| 35 | */ |
|
| 36 | private $newMessages; |
|
| 37 | ||
| 38 | /** |
|
| 39 | * @var int Count of old messages in the mailbox. |
|
| 40 | */ |
|
| 41 | private $oldMessages; |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @return string Name of the mailbox. |
|
| 45 | */ |
|
| 46 | public function getName() |
|
| 47 | { |
|
| 48 | return $this->name; |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * @return int Count of new messages in the mailbox. |
|
| 53 | */ |
|
| 54 | public function getNewMessages() |
|
| 55 | { |
|
| 56 | return $this->newMessages; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @return int Count of old messages in the mailbox. |
|
| 61 | */ |
|
| 62 | public function getOldMessages() |
|
| 63 | { |
|
| 64 | return $this->oldMessages; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param string $response |
|
| 69 | */ |
|
| 70 | public function __construct($response) |
|
| 71 | { |
|
| 72 | parent::__construct($response); |
|
| 73 | ||
| 74 | $this->name = $this->response->name; |
|
| 75 | $this->newMessages = $this->response->new_messages; |
|
| 76 | $this->oldMessages = $this->response->old_messages; |
|
| 77 | } |
|
| 78 | ||
| 79 | } |
|
| 80 | ||