public function __construct($curl = null) { if (!$curl) { $curl = new Curl(); } $this->curl = $curl; }