@@ 43-51 (lines=9) @@ | ||
40 | * |
|
41 | * @throws \Http\Discovery\Exception\NotFoundException |
|
42 | */ |
|
43 | public function __construct( |
|
44 | HttpClient $httpClient = null, |
|
45 | HydratorInterface $hydrator = null, |
|
46 | RequestBuilder $requestBuilder = null |
|
47 | ) { |
|
48 | $this->httpClient = $httpClient ?: HttpClientDiscovery::find(); |
|
49 | $this->hydrator = $hydrator ?: new ModelHydrator; |
|
50 | $this->requestBuilder = $requestBuilder ?: new RequestBuilder; |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * Create tone analyzer client with username and password |
@@ 43-51 (lines=9) @@ | ||
40 | * |
|
41 | * @throws \Http\Discovery\Exception\NotFoundException |
|
42 | */ |
|
43 | public function __construct( |
|
44 | HttpClient $httpClient = null, |
|
45 | HydratorInterface $hydrator = null, |
|
46 | RequestBuilder $requestBuilder = null |
|
47 | ) { |
|
48 | $this->httpClient = $httpClient ?: HttpClientDiscovery::find(); |
|
49 | $this->hydrator = $hydrator ?: new ModelHydrator; |
|
50 | $this->requestBuilder = $requestBuilder ?: new RequestBuilder; |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * Create VisualRecognition client |