PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Structures/PhoneNumberCountryRegionInfoType.class.php

https://gitlab.com/irbisadm/vox-php-sdk
PHP | 263 lines | 121 code | 38 blank | 104 comment | 11 complexity | c5327b49c7a020200a93bff1f64de244 MD5 | raw file
  1. <?php
  2. /**
  3. * Generated by irbisadm
  4. * generator v.0.0.1-alpha-1
  5. * at 05.05.2016 13:52:02
  6. **/
  7. namespace Irbisadm\VIHTTP\Structures;
  8. class PhoneNumberCountryRegionInfoType implements JsonSerializable{
  9. /** @var number The region ID. */
  10. private $_phone_region_id;
  11. /**
  12. * The region ID.
  13. * @return number
  14. **/
  15. public function getPhoneRegionId(){
  16. return $this->_phone_region_id;
  17. }
  18. /**
  19. * The region ID.
  20. * @param number $phoneRegionId The region ID.
  21. **/
  22. public function setPhoneRegionId($phoneRegionId){
  23. $this->_phone_region_id = $phoneRegionId;
  24. }
  25. /** @var string The full region name. */
  26. private $_phone_region_name;
  27. /**
  28. * The full region name.
  29. * @return string
  30. **/
  31. public function getPhoneRegionName(){
  32. return $this->_phone_region_name;
  33. }
  34. /**
  35. * The full region name.
  36. * @param string $phoneRegionName The full region name.
  37. **/
  38. public function setPhoneRegionName($phoneRegionName){
  39. $this->_phone_region_name = $phoneRegionName;
  40. }
  41. /** @var string The region phone prefix. */
  42. private $_phone_region_code;
  43. /**
  44. * The region phone prefix.
  45. * @return string
  46. **/
  47. public function getPhoneRegionCode(){
  48. return $this->_phone_region_code;
  49. }
  50. /**
  51. * The region phone prefix.
  52. * @param string $phoneRegionCode The region phone prefix.
  53. **/
  54. public function setPhoneRegionCode($phoneRegionCode){
  55. $this->_phone_region_code = $phoneRegionCode;
  56. }
  57. /** @var number The phone number count in stock for the region. */
  58. private $_phone_count;
  59. /**
  60. * The phone number count in stock for the region.
  61. * @return number
  62. **/
  63. public function getPhoneCount(){
  64. return $this->_phone_count;
  65. }
  66. /**
  67. * The phone number count in stock for the region.
  68. * @param number $phoneCount The phone number count in stock for the region.
  69. **/
  70. public function setPhoneCount($phoneCount){
  71. $this->_phone_count = $phoneCount;
  72. }
  73. /** @var string The account verification status. The following values are possible: REQUIRED, IN_PROGRESS, VERIFIED */
  74. private $_verification_status;
  75. /**
  76. * The account verification status. The following values are possible: REQUIRED, IN_PROGRESS, VERIFIED
  77. * @return string
  78. **/
  79. public function getVerificationStatus(){
  80. return $this->_verification_status;
  81. }
  82. /**
  83. * The account verification status. The following values are possible: REQUIRED, IN_PROGRESS, VERIFIED
  84. * @param string $verificationStatus The account verification status. The following values are possible: REQUIRED, IN_PROGRESS, VERIFIED
  85. **/
  86. public function setVerificationStatus($verificationStatus){
  87. $this->_verification_status = $verificationStatus;
  88. }
  89. /** @var string The required account verification name. */
  90. private $_required_verification;
  91. /**
  92. * The required account verification name.
  93. * @return string
  94. **/
  95. public function getRequiredVerification(){
  96. return $this->_required_verification;
  97. }
  98. /**
  99. * The required account verification name.
  100. * @param string $requiredVerification The required account verification name.
  101. **/
  102. public function setRequiredVerification($requiredVerification){
  103. $this->_required_verification = $requiredVerification;
  104. }
  105. /** @var number The phone periodic price. */
  106. private $_phone_price;
  107. /**
  108. * The phone periodic price.
  109. * @return number
  110. **/
  111. public function getPhonePrice(){
  112. return $this->_phone_price;
  113. }
  114. /**
  115. * The phone periodic price.
  116. * @param number $phonePrice The phone periodic price.
  117. **/
  118. public function setPhonePrice($phonePrice){
  119. $this->_phone_price = $phonePrice;
  120. }
  121. /** @var number The phone installation price (without the first periodic price). */
  122. private $_phone_installation_price;
  123. /**
  124. * The phone installation price (without the first periodic price).
  125. * @return number
  126. **/
  127. public function getPhoneInstallationPrice(){
  128. return $this->_phone_installation_price;
  129. }
  130. /**
  131. * The phone installation price (without the first periodic price).
  132. * @param number $phoneInstallationPrice The phone installation price (without the first periodic price).
  133. **/
  134. public function setPhoneInstallationPrice($phoneInstallationPrice){
  135. $this->_phone_installation_price = $phoneInstallationPrice;
  136. }
  137. /** @var string The charge period in format: YYYY-MM-DD HH:mm:SS */
  138. private $_phone_period;
  139. /**
  140. * The charge period in format: YYYY-MM-DD HH:mm:SS
  141. * @return string
  142. **/
  143. public function getPhonePeriod(){
  144. return $this->_phone_period;
  145. }
  146. /**
  147. * The charge period in format: YYYY-MM-DD HH:mm:SS
  148. * @param string $phonePeriod The charge period in format: YYYY-MM-DD HH:mm:SS
  149. **/
  150. public function setPhonePeriod($phonePeriod){
  151. $this->_phone_period = $phonePeriod;
  152. }
  153. /** @var boolean The flag of the need proof of address. */
  154. private $_is_need_regulation_address;
  155. /**
  156. * The flag of the need proof of address.
  157. * @return boolean
  158. **/
  159. public function getIsNeedRegulationAddress(){
  160. return $this->_is_need_regulation_address;
  161. }
  162. /**
  163. * The flag of the need proof of address.
  164. * @param boolean $isNeedRegulationAddress The flag of the need proof of address.
  165. **/
  166. public function setIsNeedRegulationAddress($isNeedRegulationAddress){
  167. $this->_is_need_regulation_address = $isNeedRegulationAddress;
  168. }
  169. /** @var string The type of regulation address. Available values: LOCAL, NATIONAL, WORLDWIDE. */
  170. private $_regulation_address_type;
  171. /**
  172. * The type of regulation address. Available values: LOCAL, NATIONAL, WORLDWIDE.
  173. * @return string
  174. **/
  175. public function getRegulationAddressType(){
  176. return $this->_regulation_address_type;
  177. }
  178. /**
  179. * The type of regulation address. Available values: LOCAL, NATIONAL, WORLDWIDE.
  180. * @param string $regulationAddressType The type of regulation address. Available values: LOCAL, NATIONAL, WORLDWIDE.
  181. **/
  182. public function setRegulationAddressType($regulationAddressType){
  183. $this->_regulation_address_type = $regulationAddressType;
  184. }
  185. public function jsonSerialize(){
  186. return [
  187. 'phone_region_id' => $this->_phone_region_id,
  188. 'phone_region_name' => $this->_phone_region_name,
  189. 'phone_region_code' => $this->_phone_region_code,
  190. 'phone_count' => $this->_phone_count,
  191. 'verification_status' => $this->_verification_status,
  192. 'required_verification' => $this->_required_verification,
  193. 'phone_price' => $this->_phone_price,
  194. 'phone_installation_price' => $this->_phone_installation_price,
  195. 'phone_period' => $this->_phone_period,
  196. 'is_need_regulation_address' => $this->_is_need_regulation_address,
  197. 'regulation_address_type' => $this->_regulation_address_type
  198. ];
  199. }
  200. public function fromArray($data){
  201. if(!empty($data['phone_region_id']))
  202. $this->_phone_region_id = $data['phone_region_id'];
  203. if(!empty($data['phone_region_name']))
  204. $this->_phone_region_name = $data['phone_region_name'];
  205. if(!empty($data['phone_region_code']))
  206. $this->_phone_region_code = $data['phone_region_code'];
  207. if(!empty($data['phone_count']))
  208. $this->_phone_count = $data['phone_count'];
  209. if(!empty($data['verification_status']))
  210. $this->_verification_status = $data['verification_status'];
  211. if(!empty($data['required_verification']))
  212. $this->_required_verification = $data['required_verification'];
  213. if(!empty($data['phone_price']))
  214. $this->_phone_price = $data['phone_price'];
  215. if(!empty($data['phone_installation_price']))
  216. $this->_phone_installation_price = $data['phone_installation_price'];
  217. if(!empty($data['phone_period']))
  218. $this->_phone_period = $data['phone_period'];
  219. if(!empty($data['is_need_regulation_address']))
  220. $this->_is_need_regulation_address = $data['is_need_regulation_address'];
  221. if(!empty($data['regulation_address_type']))
  222. $this->_regulation_address_type = $data['regulation_address_type'];
  223. return $this;
  224. }
  225. }