     1: <?php
     2:
     3: namespace SMSApi\Api\Action\User;
     4:
     5: use SMSApi\Api\Action\AbstractAction;
     6: use SMSApi\Proxy\Uri;
     7:
     8: /**
     9:  * Class GetPoints
    10:  *
    11:  * @package SMSApi\Api\Action\User
    12:  *
    13:  * @method \SMSApi\Api\Response\PointsResponse|null execute() execute()
    14:  */
    15: class GetPoints extends AbstractAction {
    16:
    17:     /**
    18:      * @param $data
    19:      * @return \SMSApi\Api\Response\PointsResponse
    20:      */
    21:     protected function response( $data ) {
    22:
    23:         return new \SMSApi\Api\Response\PointsResponse( $data );
    24:     }
    25:
    26:     /**
    27:      * @return Uri
    28:      */
    29:     public function uri() {
    30:
    31:         $query = "";
    32:
    33:         $query .= $this->paramsLoginToQuery();
    34:
    35:         $query .= $this->paramsOther();
    36:
    37:         $query .= "&credits=1";
    38:
    39:         return new Uri( $this->proxy->getProtocol(), $this->proxy->getHost(), $this->proxy->getPort(), "/api/user.do", $query );
    40:     }
    41:
    42: }
    43:
    44: