1: <?php
2:
3: namespace SMSApi\Api\Response;
4:
5: 6: 7: 8:
9: class StatusResponse extends CountableResponse {
10:
11: 12: 13:
14: private $list;
15:
16: 17: 18:
19: function __construct( $data ) {
20: parent::__construct( $data );
21:
22: $this->list = new \ArrayObject();
23:
24: if ( isset( $this->obj->list ) ) {
25: foreach ( $this->obj->list as $res ) {
26: $this->list->append( new MessageResponse( $res->id, $res->points, $res->number, $res->status, $res->error, $res->idx ) );
27: }
28: }
29: }
30:
31: 32: 33:
34: public function getList() {
35: return $this->list;
36: }
37:
38: }
39: