/** * @param Service $api Service description * @param JsonParser $parser JSON body builder */ public function __construct(Service $api, JsonParser $parser = null) { parent::__construct($api); $this->parser = $parser ?: new JsonParser(); }
/** * @param Service $api Service description * @param XmlParser $xmlParser Optional XML parser * @param bool $honorResultWrapper Set to false to disable the peeling * back of result wrappers from the * output strucutre. */ public function __construct(Service $api, XmlParser $xmlParser = null, $honorResultWrapper = true) { parent::__construct($api); $this->xmlParser = $xmlParser ?: new XmlParser(); $this->honorResultWrapper = $honorResultWrapper; }