1 | <?php |
||
8 | class RealEstateTools { |
||
|
|||
9 | |||
10 | /** |
||
11 | * __construct function. |
||
12 | * |
||
13 | * @access public |
||
14 | * @return void |
||
15 | */ |
||
16 | public function __construct() { |
||
19 | |||
20 | /** |
||
21 | * extract_zipcode function. |
||
22 | * |
||
23 | * @access public |
||
24 | * @param mixed $address |
||
25 | * @return void |
||
26 | */ |
||
27 | public function extract_zipcode( $address ) { |
||
31 | |||
32 | /** |
||
33 | * extract_bed_count function. |
||
34 | * |
||
35 | * @access public |
||
36 | * @param mixed $text |
||
37 | * @return void |
||
38 | */ |
||
39 | public function extract_bed_count( $text ) { |
||
44 | |||
45 | /** |
||
46 | * extract_bath_count function. |
||
47 | * |
||
48 | * @access public |
||
49 | * @param mixed $text |
||
50 | * @return void |
||
51 | */ |
||
52 | public function extract_bath_count( $text ) { |
||
57 | |||
58 | /** |
||
59 | * validate_usa_zipcode function. |
||
60 | * |
||
61 | * @access public |
||
62 | * @param mixed $zip_code |
||
63 | * @return void |
||
64 | */ |
||
65 | public function validate_usa_zipcode( $zip_code ) { |
||
71 | |||
72 | |||
73 | /** |
||
74 | * is_valid_latitude function. |
||
75 | * |
||
76 | * @access public |
||
77 | * @param mixed $latitude |
||
78 | * @return void |
||
79 | */ |
||
80 | public function is_valid_latitude($latitude) { |
||
87 | |||
88 | |||
89 | /** |
||
90 | * is_valid_longitude function. |
||
91 | * |
||
92 | * @access public |
||
93 | * @param mixed $longitude |
||
94 | * @return void |
||
95 | */ |
||
96 | public function is_valid_longitude($longitude) { |
||
104 | |||
105 | |||
106 | } |
||
107 | } |
||
108 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.