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: