| 1 | <?php | ||
| 3 | class Requests_Exception_Transport_cURL extends Requests_Exception_Transport { | ||
| 4 | |||
| 5 | const EASY = 'cURLEasy'; | ||
| 6 | const MULTI = 'cURLMulti'; | ||
| 7 | const SHARE = 'cURLShare'; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * cURL error code | ||
| 11 | * | ||
| 12 | * @var integer | ||
| 13 | */ | ||
| 14 | protected $code = -1; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * Which type of cURL error | ||
| 18 | * | ||
| 19 | * EASY|MULTI|SHARE | ||
| 20 | * | ||
| 21 | * @var string | ||
| 22 | */ | ||
| 23 | protected $type = 'Unknown'; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * Clear text error message | ||
| 27 | * | ||
| 28 | * @var string | ||
| 29 | */ | ||
| 30 | protected $reason = 'Unknown'; | ||
| 31 | |||
| 32 | 	public function __construct($message, $type, $data = null, $code = 0) { | ||
| 48 | |||
| 49 | /** | ||
| 50 | * Get the error message | ||
| 51 | */ | ||
| 52 | 	public function getReason() { | ||
| 55 | |||
| 56 | } | ||
| 57 | 
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.