| 1 | <?php |
||
| 5 | class DataslangApi { |
||
|
|
|||
| 6 | |||
| 7 | const BASE_URI = 'http://api.dataslang.com'; |
||
| 8 | |||
| 9 | private $client = null; |
||
| 10 | private $settings = array(); |
||
| 11 | private $timeout = 2.0; |
||
| 12 | |||
| 13 | public function __construct(){ |
||
| 17 | |||
| 18 | public function validate($xml, $xsd){ |
||
| 48 | |||
| 49 | private function initSettings(){ |
||
| 53 | |||
| 54 | public function setTimeout($timeout){ |
||
| 57 | |||
| 58 | public function getTimeout(){ |
||
| 61 | |||
| 62 | public function getBaseUri(){ |
||
| 65 | |||
| 66 | } |
||
| 67 |
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.