1 | <?php |
||
8 | abstract class Search implements Arrayable, PhoneSearchParams |
||
9 | { |
||
10 | protected $params = [ |
||
11 | "state", |
||
12 | "areacode", |
||
13 | "country", |
||
14 | ]; |
||
15 | |||
16 | protected $state; |
||
17 | protected $areacode; |
||
18 | protected $country = "US"; |
||
19 | |||
20 | 21 | public function __construct($opts) |
|
28 | |||
29 | 12 | public function toArray() |
|
39 | |||
40 | abstract protected function getBaseArray(); |
||
42 | |||
43 | /** |
||
44 | * Gets the value of areacode. |
||
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function getAreaCode() |
||
52 | |||
53 | /** |
||
54 | * Sets the value of areacode. |
||
55 | * |
||
56 | * @param mixed $areacode the areacode |
||
57 | * |
||
58 | * @return self |
||
59 | */ |
||
60 | public function setAreaCode($areacode) |
||
66 | |||
67 | /** |
||
68 | * Gets the value of country. |
||
69 | * |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function getCountry() |
||
76 | |||
77 | /** |
||
78 | * Sets the value of country. |
||
79 | * |
||
80 | * @param mixed $country the country |
||
81 | * |
||
82 | * @return self |
||
83 | */ |
||
84 | public function setCountry($country) |
||
90 | |||
91 | /** |
||
92 | * Gets the value of state. |
||
93 | * |
||
94 | * @return mixed |
||
95 | */ |
||
96 | public function getState() |
||
100 | |||
101 | /** |
||
102 | * Sets the value of state. |
||
103 | * |
||
104 | * @param mixed $state the state |
||
105 | * |
||
106 | * @return self |
||
107 | */ |
||
108 | protected function setState($state) |
||
114 | } |
||
115 |