/** * @param mixed $curl */ public static function setCurl($curl) { if (is_string($curl)) { $curl = new $curl(); } self::$curl = $curl; }