public function __construct($driver = self::DEFAULT_DRIVER, $type = self::DEFAULT_BODY_TYPE, $authType = self::DEFAULT_AUTH_TYPE) { $this->driver = $driver; $this->restBodyType = $type; $this->authType = $authType; $this->setRestDriver($this->driver); }