      1: <?php
      2:
      3: namespace SMSApi\Api\Response;
      4:
      5: /**
      6:  * Class MessageResponse
      7:  * @package SMSApi\Api\Response
      8:  */
      9: class MessageResponse implements Response {
     10:
     11:
     12:     /**
     13:      * @var int
     14:      */
     15:     private $id = null;
     16:     /**
     17:      * @var int
     18:      */
     19:     private $number = null;
     20:     /**
     21:      * @var double
     22:      */
     23:     private $points = null;
     24:     /**
     25:      * @var string
     26:      */
     27:     private $status = null;
     28:
     29:     /**
     30:      * @var null
     31:      */
     32:     private $error = null;
     33:
     34:     /**
     35:      * @var string
     36:      */
     37:     private $idx = null;
     38:
     39:     /**
     40:      * @param $id
     41:      * @param $points
     42:      * @param $number
     43:      * @param $status
     44:      * @param $error
     45:      * @param $idx
     46:      */
     47:     function __construct( $id, $points, $number, $status, $error, $idx ) {
     48:         $this->id = $id;
     49:         $this->points = $points;
     50:         $this->number = $number;
     51:         $this->status = $status;
     52:         $this->error = $error;
     53:         $this->idx = $idx;
     54:     }
     55:
     56:     /**
     57:      * Returns system message ID number
     58:      *
     59:      * @return int
     60:      */
     61:     public function getId() {
     62:         return $this->id;
     63:     }
     64:
     65:     /**
     66:      * Returns phone number
     67:      *
     68:      * @return int Phone number
     69:      */
     70:     public function getNumber() {
     71:         return $this->number;
     72:     }
     73:
     74:     /**
     75:      * Returns costs of delivery
     76:      *
     77:      * @return double
     78:      */
     79:     public function getPoints() {
     80:         return $this->points;
     81:     }
     82:
     83:     /**
     84:      * Returns message status
     85:      *
     86:      * Example:
     87:      * DRAFT DELIVERED SENT UNDELIVERED EXPIRED QUEUE UNKNOWN UNDELIVERED FAILED PENDING ACCEPTED RENEWAL STOP
     88:      *
     89:      * @return string
     90:      */
     91:     public function getStatus() {
     92:         return $this->status;
     93:     }
     94:
     95:     /**
     96:      * @return null
     97:      */
     98:     public function getError() {
     99:         return $this->error;
    100:     }
    101:
    102:     /**
    103:      * Returns private idx number
    104:      *
    105:      * @return string
    106:      */
    107:     public function getIdx() {
    108:         return $this->idx;
    109:     }
    110:
    111: }
    112: