     1: <?php
     2:
     3: namespace SMSApi\Api\Action\Phonebook;
     4:
     5: /**
     6:  * Class ContactEdit
     7:  * @package SMSApi\Api\Action\Phonebook
     8:  */
     9: class ContactEdit extends ContactAdd {
    10:
    11:
    12:     /**
    13:      * @deprecated since v1.0.0
    14:      */
    15:     public function setContact( $number ) {
    16:         return $this->phoneNumber($number);
    17:     }
    18:
    19:     /**
    20:      * Select contact phone number to edit.
    21:      *
    22:      * @param string|int $number phone number
    23:      * @return $this
    24:      */
    25:     public function filterByPhoneNumber( $number ) {
    26:         $this->params[ "edit_contact" ] = $number;
    27:         return $this;
    28:     }
    29:
    30:     /**
    31:      * Set new phone number.
    32:      *
    33:      * @param string|int $number phone number
    34:      * @return $this
    35:      */
    36:     public function setNumber( $number ) {
    37:         $this->params[ "new_number" ] = $number;
    38:         return $this;
    39:     }
    40:
    41:
    42:     /**
    43:      * Add contact to group.
    44:      *
    45:      * @param $groupName
    46:      */
    47:     public function addToGroup($groupName)
    48:     {
    49:         $this->params[ "add_to_group" ] = $groupName;
    50:     }
    51:
    52:
    53:     /**
    54:      * Remove contact from group.
    55:      *
    56:      * @param $groupName
    57:      */
    58:     public function removeFromGroup($groupName)
    59:     {
    60:         $this->params[ "remove_from_groups" ] = $groupName;
    61:     }
    62:
    63: }
    64: