Overview

Namespaces

  • SMSApi
    • Api
      • Action
        • Phonebook
        • Sender
        • Sms
        • User
      • Response
    • Exception
    • Proxy
      • Http

Classes

  • SMSApi\Proxy\Http\AbstractHttp
  • SMSApi\Proxy\Http\Curl
  • SMSApi\Proxy\Http\Native
  • Overview
  • Namespace
  • Class
 1: <?php
 2: 
 3: namespace SMSApi\Api\Response;
 4: 
 5: /**
 6:  * Class GroupResponse
 7:  * @package SMSApi\Api\Response
 8:  */
 9: class GroupResponse extends AbstractResponse {
10: 
11:     /**
12:      * @var string
13:      */
14:     private $name = null;
15:     /**
16:      * @var string
17:      */
18:     private $info = null;
19:     /**
20:      * @var array
21:      */
22:     private $numbers_count = null;
23: 
24:     /**
25:      * @param $data
26:      */
27:     function __construct( $data ) {
28: 
29:         if ( is_object( $data ) ) {
30:             $this->obj = $data;
31:         } else if ( is_string( $data ) ) {
32:             parent::__construct( $data );
33:         }
34: 
35:         if ( isset( $this->obj->name ) ) {
36:             $this->name = $this->obj->name;
37:         }
38: 
39:         if ( isset( $this->obj->info ) ) {
40:             $this->info = $this->obj->info;
41:         }
42: 
43:         if ( isset( $this->obj->numbers_count ) ) {
44:             $this->numbers_count = $this->obj->numbers_count;
45:         }
46:     }
47: 
48:     /**
49:      * Returns group name
50:      *
51:      * @return string
52:      */
53:     public function getName() {
54:         return $this->name;
55:     }
56: 
57:     /**
58:      * Returns group information
59:      *
60:      * @return string
61:      */
62:     public function getInfo() {
63:         return $this->info;
64:     }
65: 
66:     /**
67:      * @deprecated since v1.0.0 use GroupResponse::getNumbersCount
68:      * @return null
69:      */
70:     public function getNumbers() {
71:         return $this->numbers_count;
72:     }
73: 
74:     /**
75:      * Returns count numbers in group
76:      *
77:      * @return int
78:      */
79:     public function getNumbersCount() {
80:         return $this->numbers_count;
81:     }
82: 
83: }
84: 
SMSAPI Api Client API documentation generated by ApiGen