@@ -19,5 +19,5 @@ |
||
19 | 19 | */ |
20 | 20 | final class AdapterOptions |
21 | 21 | { |
22 | - const HTTP_ADAPTERS = ["OCA\\FullTextSearch_Elasticsearch\\Vendor\\GuzzleHttp\\Client" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Guzzle", "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Symfony\\Component\\HttpClient\\HttplugClient" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Symfony", "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Symfony\\Component\\HttpClient\\Psr18Client" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Symfony"]; |
|
22 | + const HTTP_ADAPTERS = ["OCA\\FullTextSearch_Elasticsearch\\Vendor\\GuzzleHttp\\Client" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Guzzle", "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Symfony\\Component\\HttpClient\\HttplugClient" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Symfony", "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Symfony\\Component\\HttpClient\\Psr18Client" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Symfony"]; |
|
23 | 23 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\Adapter; |
16 | 16 | |
17 | 17 | /** |
@@ -17,7 +17,6 @@ |
||
17 | 17 | /** |
18 | 18 | * The HTTP client adapters supported |
19 | 19 | */ |
20 | -final class AdapterOptions |
|
21 | -{ |
|
20 | +final class AdapterOptions { |
|
22 | 21 | const HTTP_ADAPTERS = ["OCA\\FullTextSearch_Elasticsearch\\Vendor\\GuzzleHttp\\Client" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Guzzle", "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Symfony\\Component\\HttpClient\\HttplugClient" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Symfony", "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Symfony\\Component\\HttpClient\\Psr18Client" => "OCA\\FullTextSearch_Elasticsearch\\Vendor\\Elastic\\Elasticsearch\\Transport\\Adapter\\Symfony"]; |
23 | 22 | } |
@@ -19,27 +19,27 @@ |
||
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Symfony\Component\HttpClient\HttpClient; |
20 | 20 | class Symfony implements AdapterInterface |
21 | 21 | { |
22 | - public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface |
|
23 | - { |
|
24 | - $symfonyConfig = []; |
|
25 | - foreach ($config as $key => $value) { |
|
26 | - switch ($key) { |
|
27 | - case RequestOptions::SSL_CERT: |
|
28 | - $symfonyConfig['local_cert'] = $value; |
|
29 | - break; |
|
30 | - case RequestOptions::SSL_KEY: |
|
31 | - $symfonyConfig['local_pk'] = $value; |
|
32 | - break; |
|
33 | - case RequestOptions::SSL_VERIFY: |
|
34 | - $symfonyConfig['verify_host'] = $value; |
|
35 | - $symfonyConfig['verify_peer'] = $value; |
|
36 | - break; |
|
37 | - case RequestOptions::SSL_CA: |
|
38 | - $symfonyConfig['cafile'] = $value; |
|
39 | - } |
|
40 | - } |
|
41 | - $class = \get_class($client); |
|
42 | - $httpClient = HttpClient::create(\array_merge($clientOptions, $symfonyConfig)); |
|
43 | - return new $class($httpClient); |
|
44 | - } |
|
22 | + public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface |
|
23 | + { |
|
24 | + $symfonyConfig = []; |
|
25 | + foreach ($config as $key => $value) { |
|
26 | + switch ($key) { |
|
27 | + case RequestOptions::SSL_CERT: |
|
28 | + $symfonyConfig['local_cert'] = $value; |
|
29 | + break; |
|
30 | + case RequestOptions::SSL_KEY: |
|
31 | + $symfonyConfig['local_pk'] = $value; |
|
32 | + break; |
|
33 | + case RequestOptions::SSL_VERIFY: |
|
34 | + $symfonyConfig['verify_host'] = $value; |
|
35 | + $symfonyConfig['verify_peer'] = $value; |
|
36 | + break; |
|
37 | + case RequestOptions::SSL_CA: |
|
38 | + $symfonyConfig['cafile'] = $value; |
|
39 | + } |
|
40 | + } |
|
41 | + $class = \get_class($client); |
|
42 | + $httpClient = HttpClient::create(\array_merge($clientOptions, $symfonyConfig)); |
|
43 | + return new $class($httpClient); |
|
44 | + } |
|
45 | 45 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\Adapter; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\RequestOptions; |
@@ -17,8 +17,7 @@ |
||
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\RequestOptions; |
18 | 18 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Client\ClientInterface; |
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Symfony\Component\HttpClient\HttpClient; |
20 | -class Symfony implements AdapterInterface |
|
21 | -{ |
|
20 | +class Symfony implements AdapterInterface { |
|
22 | 21 | public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface |
23 | 22 | { |
24 | 23 | $symfonyConfig = []; |
@@ -19,25 +19,25 @@ |
||
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Client\ClientInterface; |
20 | 20 | class Guzzle implements AdapterInterface |
21 | 21 | { |
22 | - public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface |
|
23 | - { |
|
24 | - $guzzleConfig = []; |
|
25 | - foreach ($config as $key => $value) { |
|
26 | - switch ($key) { |
|
27 | - case RequestOptions::SSL_CERT: |
|
28 | - $guzzleConfig[GuzzleOptions::CERT] = $value; |
|
29 | - break; |
|
30 | - case RequestOptions::SSL_KEY: |
|
31 | - $guzzleConfig[GuzzleOptions::SSL_KEY] = $value; |
|
32 | - break; |
|
33 | - case RequestOptions::SSL_VERIFY: |
|
34 | - $guzzleConfig[GuzzleOptions::VERIFY] = $value; |
|
35 | - break; |
|
36 | - case RequestOptions::SSL_CA: |
|
37 | - $guzzleConfig[GuzzleOptions::VERIFY] = $value; |
|
38 | - } |
|
39 | - } |
|
40 | - $class = \get_class($client); |
|
41 | - return new $class(\array_merge($clientOptions, $guzzleConfig)); |
|
42 | - } |
|
22 | + public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface |
|
23 | + { |
|
24 | + $guzzleConfig = []; |
|
25 | + foreach ($config as $key => $value) { |
|
26 | + switch ($key) { |
|
27 | + case RequestOptions::SSL_CERT: |
|
28 | + $guzzleConfig[GuzzleOptions::CERT] = $value; |
|
29 | + break; |
|
30 | + case RequestOptions::SSL_KEY: |
|
31 | + $guzzleConfig[GuzzleOptions::SSL_KEY] = $value; |
|
32 | + break; |
|
33 | + case RequestOptions::SSL_VERIFY: |
|
34 | + $guzzleConfig[GuzzleOptions::VERIFY] = $value; |
|
35 | + break; |
|
36 | + case RequestOptions::SSL_CA: |
|
37 | + $guzzleConfig[GuzzleOptions::VERIFY] = $value; |
|
38 | + } |
|
39 | + } |
|
40 | + $class = \get_class($client); |
|
41 | + return new $class(\array_merge($clientOptions, $guzzleConfig)); |
|
42 | + } |
|
43 | 43 | } |
@@ -17,8 +17,7 @@ |
||
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\RequestOptions; |
18 | 18 | use OCA\FullTextSearch_Elasticsearch\Vendor\GuzzleHttp\RequestOptions as GuzzleOptions; |
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Client\ClientInterface; |
20 | -class Guzzle implements AdapterInterface |
|
21 | -{ |
|
20 | +class Guzzle implements AdapterInterface { |
|
22 | 21 | public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface |
23 | 22 | { |
24 | 23 | $guzzleConfig = []; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\Adapter; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\RequestOptions; |
@@ -17,5 +17,5 @@ |
||
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Client\ClientInterface; |
18 | 18 | interface AdapterInterface |
19 | 19 | { |
20 | - public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface; |
|
20 | + public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface; |
|
21 | 21 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\Adapter; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Client\ClientInterface; |
@@ -15,7 +15,6 @@ |
||
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport\Adapter; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Client\ClientInterface; |
18 | -interface AdapterInterface |
|
19 | -{ |
|
18 | +interface AdapterInterface { |
|
20 | 19 | public function setConfig(ClientInterface $client, array $config, array $clientOptions) : ClientInterface; |
21 | 20 | } |
@@ -19,10 +19,10 @@ |
||
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\ResponseInterface; |
20 | 20 | class AsyncOnSuccess implements OnSuccessInterface |
21 | 21 | { |
22 | - public function success(ResponseInterface $response, int $count) : Elasticsearch |
|
23 | - { |
|
24 | - $result = new Elasticsearch(); |
|
25 | - $result->setResponse($response, \true); |
|
26 | - return $result; |
|
27 | - } |
|
22 | + public function success(ResponseInterface $response, int $count) : Elasticsearch |
|
23 | + { |
|
24 | + $result = new Elasticsearch(); |
|
25 | + $result->setResponse($response, \true); |
|
26 | + return $result; |
|
27 | + } |
|
28 | 28 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Response\Elasticsearch; |
@@ -17,8 +17,7 @@ |
||
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Response\Elasticsearch; |
18 | 18 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Transport\Async\OnSuccessInterface; |
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\ResponseInterface; |
20 | -class AsyncOnSuccess implements OnSuccessInterface |
|
21 | -{ |
|
20 | +class AsyncOnSuccess implements OnSuccessInterface { |
|
22 | 21 | public function success(ResponseInterface $response, int $count) : Elasticsearch |
23 | 22 | { |
24 | 23 | $result = new Elasticsearch(); |
@@ -19,10 +19,10 @@ |
||
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\ResponseInterface; |
20 | 20 | class AsyncOnSuccessNoException implements OnSuccessInterface |
21 | 21 | { |
22 | - public function success(ResponseInterface $response, int $count) : Elasticsearch |
|
23 | - { |
|
24 | - $result = new Elasticsearch(); |
|
25 | - $result->setResponse($response, \false); |
|
26 | - return $result; |
|
27 | - } |
|
22 | + public function success(ResponseInterface $response, int $count) : Elasticsearch |
|
23 | + { |
|
24 | + $result = new Elasticsearch(); |
|
25 | + $result->setResponse($response, \false); |
|
26 | + return $result; |
|
27 | + } |
|
28 | 28 | } |
@@ -17,8 +17,7 @@ |
||
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Response\Elasticsearch; |
18 | 18 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Transport\Async\OnSuccessInterface; |
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\ResponseInterface; |
20 | -class AsyncOnSuccessNoException implements OnSuccessInterface |
|
21 | -{ |
|
20 | +class AsyncOnSuccessNoException implements OnSuccessInterface { |
|
22 | 21 | public function success(ResponseInterface $response, int $count) : Elasticsearch |
23 | 22 | { |
24 | 23 | $result = new Elasticsearch(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Response\Elasticsearch; |
@@ -16,20 +16,20 @@ |
||
16 | 16 | |
17 | 17 | final class RequestOptions |
18 | 18 | { |
19 | - /** |
|
20 | - * Enable or sidable the SSL verification |
|
21 | - */ |
|
22 | - public const SSL_VERIFY = 'ssl_verify'; |
|
23 | - /** |
|
24 | - * SSL certificate |
|
25 | - */ |
|
26 | - public const SSL_CERT = 'ssl_cert'; |
|
27 | - /** |
|
28 | - * SSL key |
|
29 | - */ |
|
30 | - public const SSL_KEY = 'ssl_key'; |
|
31 | - /** |
|
32 | - * SSL Certificate Authority (CA) bundle |
|
33 | - */ |
|
34 | - public const SSL_CA = 'ssl_ca'; |
|
19 | + /** |
|
20 | + * Enable or sidable the SSL verification |
|
21 | + */ |
|
22 | + public const SSL_VERIFY = 'ssl_verify'; |
|
23 | + /** |
|
24 | + * SSL certificate |
|
25 | + */ |
|
26 | + public const SSL_CERT = 'ssl_cert'; |
|
27 | + /** |
|
28 | + * SSL key |
|
29 | + */ |
|
30 | + public const SSL_KEY = 'ssl_key'; |
|
31 | + /** |
|
32 | + * SSL Certificate Authority (CA) bundle |
|
33 | + */ |
|
34 | + public const SSL_CA = 'ssl_ca'; |
|
35 | 35 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport; |
16 | 16 | |
17 | 17 | final class RequestOptions |
@@ -14,8 +14,7 @@ |
||
14 | 14 | declare (strict_types=1); |
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Transport; |
16 | 16 | |
17 | -final class RequestOptions |
|
18 | -{ |
|
17 | +final class RequestOptions { |
|
19 | 18 | /** |
20 | 19 | * Enable or sidable the SSL verification |
21 | 20 | */ |
@@ -23,60 +23,60 @@ |
||
23 | 23 | */ |
24 | 24 | trait MessageResponseTrait |
25 | 25 | { |
26 | - public function getProtocolVersion() : string |
|
27 | - { |
|
28 | - return $this->response->getProtocolVersion(); |
|
29 | - } |
|
30 | - public function withProtocolVersion($version) : MessageInterface |
|
31 | - { |
|
32 | - return $this->response->withProtocolVersion($version); |
|
33 | - } |
|
34 | - public function getHeaders() : array |
|
35 | - { |
|
36 | - return $this->response->getHeaders(); |
|
37 | - } |
|
38 | - public function hasHeader(string $name) : bool |
|
39 | - { |
|
40 | - return $this->response->hasHeader($name); |
|
41 | - } |
|
42 | - public function getHeader(string $name) : array |
|
43 | - { |
|
44 | - return $this->response->getHeader($name); |
|
45 | - } |
|
46 | - public function getHeaderLine(string $name) : string |
|
47 | - { |
|
48 | - return $this->response->getHeaderLine($name); |
|
49 | - } |
|
50 | - public function withHeader(string $name, $value) : MessageInterface |
|
51 | - { |
|
52 | - return $this->response->withHeader($name, $value); |
|
53 | - } |
|
54 | - public function withAddedHeader(string $name, $value) : MessageInterface |
|
55 | - { |
|
56 | - return $this->response->withAddedHeader($name, $value); |
|
57 | - } |
|
58 | - public function withoutHeader(string $name) : MessageInterface |
|
59 | - { |
|
60 | - return $this->response->withoutHeader($name); |
|
61 | - } |
|
62 | - public function getBody() : StreamInterface |
|
63 | - { |
|
64 | - return $this->response->getBody(); |
|
65 | - } |
|
66 | - public function withBody(StreamInterface $body) : MessageInterface |
|
67 | - { |
|
68 | - return $this->response->withBody($body); |
|
69 | - } |
|
70 | - public function getStatusCode() : int |
|
71 | - { |
|
72 | - return $this->response->getStatusCode(); |
|
73 | - } |
|
74 | - public function withStatus(int $code, string $reasonPhrase = '') : ResponseInterface |
|
75 | - { |
|
76 | - return $this->response->withStatus($code, $reasonPhrase); |
|
77 | - } |
|
78 | - public function getReasonPhrase() : string |
|
79 | - { |
|
80 | - return $this->response->getReasonPhrase(); |
|
81 | - } |
|
26 | + public function getProtocolVersion() : string |
|
27 | + { |
|
28 | + return $this->response->getProtocolVersion(); |
|
29 | + } |
|
30 | + public function withProtocolVersion($version) : MessageInterface |
|
31 | + { |
|
32 | + return $this->response->withProtocolVersion($version); |
|
33 | + } |
|
34 | + public function getHeaders() : array |
|
35 | + { |
|
36 | + return $this->response->getHeaders(); |
|
37 | + } |
|
38 | + public function hasHeader(string $name) : bool |
|
39 | + { |
|
40 | + return $this->response->hasHeader($name); |
|
41 | + } |
|
42 | + public function getHeader(string $name) : array |
|
43 | + { |
|
44 | + return $this->response->getHeader($name); |
|
45 | + } |
|
46 | + public function getHeaderLine(string $name) : string |
|
47 | + { |
|
48 | + return $this->response->getHeaderLine($name); |
|
49 | + } |
|
50 | + public function withHeader(string $name, $value) : MessageInterface |
|
51 | + { |
|
52 | + return $this->response->withHeader($name, $value); |
|
53 | + } |
|
54 | + public function withAddedHeader(string $name, $value) : MessageInterface |
|
55 | + { |
|
56 | + return $this->response->withAddedHeader($name, $value); |
|
57 | + } |
|
58 | + public function withoutHeader(string $name) : MessageInterface |
|
59 | + { |
|
60 | + return $this->response->withoutHeader($name); |
|
61 | + } |
|
62 | + public function getBody() : StreamInterface |
|
63 | + { |
|
64 | + return $this->response->getBody(); |
|
65 | + } |
|
66 | + public function withBody(StreamInterface $body) : MessageInterface |
|
67 | + { |
|
68 | + return $this->response->withBody($body); |
|
69 | + } |
|
70 | + public function getStatusCode() : int |
|
71 | + { |
|
72 | + return $this->response->getStatusCode(); |
|
73 | + } |
|
74 | + public function withStatus(int $code, string $reasonPhrase = '') : ResponseInterface |
|
75 | + { |
|
76 | + return $this->response->withStatus($code, $reasonPhrase); |
|
77 | + } |
|
78 | + public function getReasonPhrase() : string |
|
79 | + { |
|
80 | + return $this->response->getReasonPhrase(); |
|
81 | + } |
|
82 | 82 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Traits; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\MessageInterface; |
@@ -21,8 +21,7 @@ |
||
21 | 21 | * Proxy class for Psr\Http\Message\ResponseInterface using |
22 | 22 | * $this->response as source object |
23 | 23 | */ |
24 | -trait MessageResponseTrait |
|
25 | -{ |
|
24 | +trait MessageResponseTrait { |
|
26 | 25 | public function getProtocolVersion() : string |
27 | 26 | { |
28 | 27 | return $this->response->getProtocolVersion(); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * Elasticsearch B.V licenses this file to you under the MIT License. |
12 | 12 | * See the LICENSE file in the project root for more information. |
13 | 13 | */ |
14 | -declare (strict_types=1); |
|
14 | +declare(strict_types=1); |
|
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Traits; |
16 | 16 | |
17 | 17 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Endpoints\AsyncSearch; |
@@ -59,8 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * @generated This file is generated, please do not edit |
61 | 61 | */ |
62 | -trait NamespaceTrait |
|
63 | -{ |
|
62 | +trait NamespaceTrait { |
|
64 | 63 | /** The endpoint namespace storage */ |
65 | 64 | protected array $namespace; |
66 | 65 | public function asyncSearch() : AsyncSearch |
@@ -60,293 +60,293 @@ |
||
60 | 60 | */ |
61 | 61 | trait NamespaceTrait |
62 | 62 | { |
63 | - /** The endpoint namespace storage */ |
|
64 | - protected array $namespace; |
|
65 | - public function asyncSearch() : AsyncSearch |
|
66 | - { |
|
67 | - if (!isset($this->namespace['AsyncSearch'])) { |
|
68 | - $this->namespace['AsyncSearch'] = new AsyncSearch($this); |
|
69 | - } |
|
70 | - return $this->namespace['AsyncSearch']; |
|
71 | - } |
|
72 | - public function autoscaling() : Autoscaling |
|
73 | - { |
|
74 | - if (!isset($this->namespace['Autoscaling'])) { |
|
75 | - $this->namespace['Autoscaling'] = new Autoscaling($this); |
|
76 | - } |
|
77 | - return $this->namespace['Autoscaling']; |
|
78 | - } |
|
79 | - public function cat() : Cat |
|
80 | - { |
|
81 | - if (!isset($this->namespace['Cat'])) { |
|
82 | - $this->namespace['Cat'] = new Cat($this); |
|
83 | - } |
|
84 | - return $this->namespace['Cat']; |
|
85 | - } |
|
86 | - public function ccr() : Ccr |
|
87 | - { |
|
88 | - if (!isset($this->namespace['Ccr'])) { |
|
89 | - $this->namespace['Ccr'] = new Ccr($this); |
|
90 | - } |
|
91 | - return $this->namespace['Ccr']; |
|
92 | - } |
|
93 | - public function cluster() : Cluster |
|
94 | - { |
|
95 | - if (!isset($this->namespace['Cluster'])) { |
|
96 | - $this->namespace['Cluster'] = new Cluster($this); |
|
97 | - } |
|
98 | - return $this->namespace['Cluster']; |
|
99 | - } |
|
100 | - public function connector() : Connector |
|
101 | - { |
|
102 | - if (!isset($this->namespace['Connector'])) { |
|
103 | - $this->namespace['Connector'] = new Connector($this); |
|
104 | - } |
|
105 | - return $this->namespace['Connector']; |
|
106 | - } |
|
107 | - public function danglingIndices() : DanglingIndices |
|
108 | - { |
|
109 | - if (!isset($this->namespace['DanglingIndices'])) { |
|
110 | - $this->namespace['DanglingIndices'] = new DanglingIndices($this); |
|
111 | - } |
|
112 | - return $this->namespace['DanglingIndices']; |
|
113 | - } |
|
114 | - public function enrich() : Enrich |
|
115 | - { |
|
116 | - if (!isset($this->namespace['Enrich'])) { |
|
117 | - $this->namespace['Enrich'] = new Enrich($this); |
|
118 | - } |
|
119 | - return $this->namespace['Enrich']; |
|
120 | - } |
|
121 | - public function eql() : Eql |
|
122 | - { |
|
123 | - if (!isset($this->namespace['Eql'])) { |
|
124 | - $this->namespace['Eql'] = new Eql($this); |
|
125 | - } |
|
126 | - return $this->namespace['Eql']; |
|
127 | - } |
|
128 | - public function esql() : Esql |
|
129 | - { |
|
130 | - if (!isset($this->namespace['Esql'])) { |
|
131 | - $this->namespace['Esql'] = new Esql($this); |
|
132 | - } |
|
133 | - return $this->namespace['Esql']; |
|
134 | - } |
|
135 | - public function features() : Features |
|
136 | - { |
|
137 | - if (!isset($this->namespace['Features'])) { |
|
138 | - $this->namespace['Features'] = new Features($this); |
|
139 | - } |
|
140 | - return $this->namespace['Features']; |
|
141 | - } |
|
142 | - public function fleet() : Fleet |
|
143 | - { |
|
144 | - if (!isset($this->namespace['Fleet'])) { |
|
145 | - $this->namespace['Fleet'] = new Fleet($this); |
|
146 | - } |
|
147 | - return $this->namespace['Fleet']; |
|
148 | - } |
|
149 | - public function graph() : Graph |
|
150 | - { |
|
151 | - if (!isset($this->namespace['Graph'])) { |
|
152 | - $this->namespace['Graph'] = new Graph($this); |
|
153 | - } |
|
154 | - return $this->namespace['Graph']; |
|
155 | - } |
|
156 | - public function ilm() : Ilm |
|
157 | - { |
|
158 | - if (!isset($this->namespace['Ilm'])) { |
|
159 | - $this->namespace['Ilm'] = new Ilm($this); |
|
160 | - } |
|
161 | - return $this->namespace['Ilm']; |
|
162 | - } |
|
163 | - public function indices() : Indices |
|
164 | - { |
|
165 | - if (!isset($this->namespace['Indices'])) { |
|
166 | - $this->namespace['Indices'] = new Indices($this); |
|
167 | - } |
|
168 | - return $this->namespace['Indices']; |
|
169 | - } |
|
170 | - public function inference() : Inference |
|
171 | - { |
|
172 | - if (!isset($this->namespace['Inference'])) { |
|
173 | - $this->namespace['Inference'] = new Inference($this); |
|
174 | - } |
|
175 | - return $this->namespace['Inference']; |
|
176 | - } |
|
177 | - public function ingest() : Ingest |
|
178 | - { |
|
179 | - if (!isset($this->namespace['Ingest'])) { |
|
180 | - $this->namespace['Ingest'] = new Ingest($this); |
|
181 | - } |
|
182 | - return $this->namespace['Ingest']; |
|
183 | - } |
|
184 | - public function license() : License |
|
185 | - { |
|
186 | - if (!isset($this->namespace['License'])) { |
|
187 | - $this->namespace['License'] = new License($this); |
|
188 | - } |
|
189 | - return $this->namespace['License']; |
|
190 | - } |
|
191 | - public function logstash() : Logstash |
|
192 | - { |
|
193 | - if (!isset($this->namespace['Logstash'])) { |
|
194 | - $this->namespace['Logstash'] = new Logstash($this); |
|
195 | - } |
|
196 | - return $this->namespace['Logstash']; |
|
197 | - } |
|
198 | - public function migration() : Migration |
|
199 | - { |
|
200 | - if (!isset($this->namespace['Migration'])) { |
|
201 | - $this->namespace['Migration'] = new Migration($this); |
|
202 | - } |
|
203 | - return $this->namespace['Migration']; |
|
204 | - } |
|
205 | - public function ml() : Ml |
|
206 | - { |
|
207 | - if (!isset($this->namespace['Ml'])) { |
|
208 | - $this->namespace['Ml'] = new Ml($this); |
|
209 | - } |
|
210 | - return $this->namespace['Ml']; |
|
211 | - } |
|
212 | - public function monitoring() : Monitoring |
|
213 | - { |
|
214 | - if (!isset($this->namespace['Monitoring'])) { |
|
215 | - $this->namespace['Monitoring'] = new Monitoring($this); |
|
216 | - } |
|
217 | - return $this->namespace['Monitoring']; |
|
218 | - } |
|
219 | - public function nodes() : Nodes |
|
220 | - { |
|
221 | - if (!isset($this->namespace['Nodes'])) { |
|
222 | - $this->namespace['Nodes'] = new Nodes($this); |
|
223 | - } |
|
224 | - return $this->namespace['Nodes']; |
|
225 | - } |
|
226 | - public function profiling() : Profiling |
|
227 | - { |
|
228 | - if (!isset($this->namespace['Profiling'])) { |
|
229 | - $this->namespace['Profiling'] = new Profiling($this); |
|
230 | - } |
|
231 | - return $this->namespace['Profiling']; |
|
232 | - } |
|
233 | - public function queryRules() : QueryRules |
|
234 | - { |
|
235 | - if (!isset($this->namespace['QueryRules'])) { |
|
236 | - $this->namespace['QueryRules'] = new QueryRules($this); |
|
237 | - } |
|
238 | - return $this->namespace['QueryRules']; |
|
239 | - } |
|
240 | - public function rollup() : Rollup |
|
241 | - { |
|
242 | - if (!isset($this->namespace['Rollup'])) { |
|
243 | - $this->namespace['Rollup'] = new Rollup($this); |
|
244 | - } |
|
245 | - return $this->namespace['Rollup']; |
|
246 | - } |
|
247 | - public function searchApplication() : SearchApplication |
|
248 | - { |
|
249 | - if (!isset($this->namespace['SearchApplication'])) { |
|
250 | - $this->namespace['SearchApplication'] = new SearchApplication($this); |
|
251 | - } |
|
252 | - return $this->namespace['SearchApplication']; |
|
253 | - } |
|
254 | - public function searchableSnapshots() : SearchableSnapshots |
|
255 | - { |
|
256 | - if (!isset($this->namespace['SearchableSnapshots'])) { |
|
257 | - $this->namespace['SearchableSnapshots'] = new SearchableSnapshots($this); |
|
258 | - } |
|
259 | - return $this->namespace['SearchableSnapshots']; |
|
260 | - } |
|
261 | - public function security() : Security |
|
262 | - { |
|
263 | - if (!isset($this->namespace['Security'])) { |
|
264 | - $this->namespace['Security'] = new Security($this); |
|
265 | - } |
|
266 | - return $this->namespace['Security']; |
|
267 | - } |
|
268 | - public function shutdown() : Shutdown |
|
269 | - { |
|
270 | - if (!isset($this->namespace['Shutdown'])) { |
|
271 | - $this->namespace['Shutdown'] = new Shutdown($this); |
|
272 | - } |
|
273 | - return $this->namespace['Shutdown']; |
|
274 | - } |
|
275 | - public function simulate() : Simulate |
|
276 | - { |
|
277 | - if (!isset($this->namespace['Simulate'])) { |
|
278 | - $this->namespace['Simulate'] = new Simulate($this); |
|
279 | - } |
|
280 | - return $this->namespace['Simulate']; |
|
281 | - } |
|
282 | - public function slm() : Slm |
|
283 | - { |
|
284 | - if (!isset($this->namespace['Slm'])) { |
|
285 | - $this->namespace['Slm'] = new Slm($this); |
|
286 | - } |
|
287 | - return $this->namespace['Slm']; |
|
288 | - } |
|
289 | - public function snapshot() : Snapshot |
|
290 | - { |
|
291 | - if (!isset($this->namespace['Snapshot'])) { |
|
292 | - $this->namespace['Snapshot'] = new Snapshot($this); |
|
293 | - } |
|
294 | - return $this->namespace['Snapshot']; |
|
295 | - } |
|
296 | - public function sql() : Sql |
|
297 | - { |
|
298 | - if (!isset($this->namespace['Sql'])) { |
|
299 | - $this->namespace['Sql'] = new Sql($this); |
|
300 | - } |
|
301 | - return $this->namespace['Sql']; |
|
302 | - } |
|
303 | - public function ssl() : Ssl |
|
304 | - { |
|
305 | - if (!isset($this->namespace['Ssl'])) { |
|
306 | - $this->namespace['Ssl'] = new Ssl($this); |
|
307 | - } |
|
308 | - return $this->namespace['Ssl']; |
|
309 | - } |
|
310 | - public function synonyms() : Synonyms |
|
311 | - { |
|
312 | - if (!isset($this->namespace['Synonyms'])) { |
|
313 | - $this->namespace['Synonyms'] = new Synonyms($this); |
|
314 | - } |
|
315 | - return $this->namespace['Synonyms']; |
|
316 | - } |
|
317 | - public function tasks() : Tasks |
|
318 | - { |
|
319 | - if (!isset($this->namespace['Tasks'])) { |
|
320 | - $this->namespace['Tasks'] = new Tasks($this); |
|
321 | - } |
|
322 | - return $this->namespace['Tasks']; |
|
323 | - } |
|
324 | - public function textStructure() : TextStructure |
|
325 | - { |
|
326 | - if (!isset($this->namespace['TextStructure'])) { |
|
327 | - $this->namespace['TextStructure'] = new TextStructure($this); |
|
328 | - } |
|
329 | - return $this->namespace['TextStructure']; |
|
330 | - } |
|
331 | - public function transform() : Transform |
|
332 | - { |
|
333 | - if (!isset($this->namespace['Transform'])) { |
|
334 | - $this->namespace['Transform'] = new Transform($this); |
|
335 | - } |
|
336 | - return $this->namespace['Transform']; |
|
337 | - } |
|
338 | - public function watcher() : Watcher |
|
339 | - { |
|
340 | - if (!isset($this->namespace['Watcher'])) { |
|
341 | - $this->namespace['Watcher'] = new Watcher($this); |
|
342 | - } |
|
343 | - return $this->namespace['Watcher']; |
|
344 | - } |
|
345 | - public function xpack() : Xpack |
|
346 | - { |
|
347 | - if (!isset($this->namespace['Xpack'])) { |
|
348 | - $this->namespace['Xpack'] = new Xpack($this); |
|
349 | - } |
|
350 | - return $this->namespace['Xpack']; |
|
351 | - } |
|
63 | + /** The endpoint namespace storage */ |
|
64 | + protected array $namespace; |
|
65 | + public function asyncSearch() : AsyncSearch |
|
66 | + { |
|
67 | + if (!isset($this->namespace['AsyncSearch'])) { |
|
68 | + $this->namespace['AsyncSearch'] = new AsyncSearch($this); |
|
69 | + } |
|
70 | + return $this->namespace['AsyncSearch']; |
|
71 | + } |
|
72 | + public function autoscaling() : Autoscaling |
|
73 | + { |
|
74 | + if (!isset($this->namespace['Autoscaling'])) { |
|
75 | + $this->namespace['Autoscaling'] = new Autoscaling($this); |
|
76 | + } |
|
77 | + return $this->namespace['Autoscaling']; |
|
78 | + } |
|
79 | + public function cat() : Cat |
|
80 | + { |
|
81 | + if (!isset($this->namespace['Cat'])) { |
|
82 | + $this->namespace['Cat'] = new Cat($this); |
|
83 | + } |
|
84 | + return $this->namespace['Cat']; |
|
85 | + } |
|
86 | + public function ccr() : Ccr |
|
87 | + { |
|
88 | + if (!isset($this->namespace['Ccr'])) { |
|
89 | + $this->namespace['Ccr'] = new Ccr($this); |
|
90 | + } |
|
91 | + return $this->namespace['Ccr']; |
|
92 | + } |
|
93 | + public function cluster() : Cluster |
|
94 | + { |
|
95 | + if (!isset($this->namespace['Cluster'])) { |
|
96 | + $this->namespace['Cluster'] = new Cluster($this); |
|
97 | + } |
|
98 | + return $this->namespace['Cluster']; |
|
99 | + } |
|
100 | + public function connector() : Connector |
|
101 | + { |
|
102 | + if (!isset($this->namespace['Connector'])) { |
|
103 | + $this->namespace['Connector'] = new Connector($this); |
|
104 | + } |
|
105 | + return $this->namespace['Connector']; |
|
106 | + } |
|
107 | + public function danglingIndices() : DanglingIndices |
|
108 | + { |
|
109 | + if (!isset($this->namespace['DanglingIndices'])) { |
|
110 | + $this->namespace['DanglingIndices'] = new DanglingIndices($this); |
|
111 | + } |
|
112 | + return $this->namespace['DanglingIndices']; |
|
113 | + } |
|
114 | + public function enrich() : Enrich |
|
115 | + { |
|
116 | + if (!isset($this->namespace['Enrich'])) { |
|
117 | + $this->namespace['Enrich'] = new Enrich($this); |
|
118 | + } |
|
119 | + return $this->namespace['Enrich']; |
|
120 | + } |
|
121 | + public function eql() : Eql |
|
122 | + { |
|
123 | + if (!isset($this->namespace['Eql'])) { |
|
124 | + $this->namespace['Eql'] = new Eql($this); |
|
125 | + } |
|
126 | + return $this->namespace['Eql']; |
|
127 | + } |
|
128 | + public function esql() : Esql |
|
129 | + { |
|
130 | + if (!isset($this->namespace['Esql'])) { |
|
131 | + $this->namespace['Esql'] = new Esql($this); |
|
132 | + } |
|
133 | + return $this->namespace['Esql']; |
|
134 | + } |
|
135 | + public function features() : Features |
|
136 | + { |
|
137 | + if (!isset($this->namespace['Features'])) { |
|
138 | + $this->namespace['Features'] = new Features($this); |
|
139 | + } |
|
140 | + return $this->namespace['Features']; |
|
141 | + } |
|
142 | + public function fleet() : Fleet |
|
143 | + { |
|
144 | + if (!isset($this->namespace['Fleet'])) { |
|
145 | + $this->namespace['Fleet'] = new Fleet($this); |
|
146 | + } |
|
147 | + return $this->namespace['Fleet']; |
|
148 | + } |
|
149 | + public function graph() : Graph |
|
150 | + { |
|
151 | + if (!isset($this->namespace['Graph'])) { |
|
152 | + $this->namespace['Graph'] = new Graph($this); |
|
153 | + } |
|
154 | + return $this->namespace['Graph']; |
|
155 | + } |
|
156 | + public function ilm() : Ilm |
|
157 | + { |
|
158 | + if (!isset($this->namespace['Ilm'])) { |
|
159 | + $this->namespace['Ilm'] = new Ilm($this); |
|
160 | + } |
|
161 | + return $this->namespace['Ilm']; |
|
162 | + } |
|
163 | + public function indices() : Indices |
|
164 | + { |
|
165 | + if (!isset($this->namespace['Indices'])) { |
|
166 | + $this->namespace['Indices'] = new Indices($this); |
|
167 | + } |
|
168 | + return $this->namespace['Indices']; |
|
169 | + } |
|
170 | + public function inference() : Inference |
|
171 | + { |
|
172 | + if (!isset($this->namespace['Inference'])) { |
|
173 | + $this->namespace['Inference'] = new Inference($this); |
|
174 | + } |
|
175 | + return $this->namespace['Inference']; |
|
176 | + } |
|
177 | + public function ingest() : Ingest |
|
178 | + { |
|
179 | + if (!isset($this->namespace['Ingest'])) { |
|
180 | + $this->namespace['Ingest'] = new Ingest($this); |
|
181 | + } |
|
182 | + return $this->namespace['Ingest']; |
|
183 | + } |
|
184 | + public function license() : License |
|
185 | + { |
|
186 | + if (!isset($this->namespace['License'])) { |
|
187 | + $this->namespace['License'] = new License($this); |
|
188 | + } |
|
189 | + return $this->namespace['License']; |
|
190 | + } |
|
191 | + public function logstash() : Logstash |
|
192 | + { |
|
193 | + if (!isset($this->namespace['Logstash'])) { |
|
194 | + $this->namespace['Logstash'] = new Logstash($this); |
|
195 | + } |
|
196 | + return $this->namespace['Logstash']; |
|
197 | + } |
|
198 | + public function migration() : Migration |
|
199 | + { |
|
200 | + if (!isset($this->namespace['Migration'])) { |
|
201 | + $this->namespace['Migration'] = new Migration($this); |
|
202 | + } |
|
203 | + return $this->namespace['Migration']; |
|
204 | + } |
|
205 | + public function ml() : Ml |
|
206 | + { |
|
207 | + if (!isset($this->namespace['Ml'])) { |
|
208 | + $this->namespace['Ml'] = new Ml($this); |
|
209 | + } |
|
210 | + return $this->namespace['Ml']; |
|
211 | + } |
|
212 | + public function monitoring() : Monitoring |
|
213 | + { |
|
214 | + if (!isset($this->namespace['Monitoring'])) { |
|
215 | + $this->namespace['Monitoring'] = new Monitoring($this); |
|
216 | + } |
|
217 | + return $this->namespace['Monitoring']; |
|
218 | + } |
|
219 | + public function nodes() : Nodes |
|
220 | + { |
|
221 | + if (!isset($this->namespace['Nodes'])) { |
|
222 | + $this->namespace['Nodes'] = new Nodes($this); |
|
223 | + } |
|
224 | + return $this->namespace['Nodes']; |
|
225 | + } |
|
226 | + public function profiling() : Profiling |
|
227 | + { |
|
228 | + if (!isset($this->namespace['Profiling'])) { |
|
229 | + $this->namespace['Profiling'] = new Profiling($this); |
|
230 | + } |
|
231 | + return $this->namespace['Profiling']; |
|
232 | + } |
|
233 | + public function queryRules() : QueryRules |
|
234 | + { |
|
235 | + if (!isset($this->namespace['QueryRules'])) { |
|
236 | + $this->namespace['QueryRules'] = new QueryRules($this); |
|
237 | + } |
|
238 | + return $this->namespace['QueryRules']; |
|
239 | + } |
|
240 | + public function rollup() : Rollup |
|
241 | + { |
|
242 | + if (!isset($this->namespace['Rollup'])) { |
|
243 | + $this->namespace['Rollup'] = new Rollup($this); |
|
244 | + } |
|
245 | + return $this->namespace['Rollup']; |
|
246 | + } |
|
247 | + public function searchApplication() : SearchApplication |
|
248 | + { |
|
249 | + if (!isset($this->namespace['SearchApplication'])) { |
|
250 | + $this->namespace['SearchApplication'] = new SearchApplication($this); |
|
251 | + } |
|
252 | + return $this->namespace['SearchApplication']; |
|
253 | + } |
|
254 | + public function searchableSnapshots() : SearchableSnapshots |
|
255 | + { |
|
256 | + if (!isset($this->namespace['SearchableSnapshots'])) { |
|
257 | + $this->namespace['SearchableSnapshots'] = new SearchableSnapshots($this); |
|
258 | + } |
|
259 | + return $this->namespace['SearchableSnapshots']; |
|
260 | + } |
|
261 | + public function security() : Security |
|
262 | + { |
|
263 | + if (!isset($this->namespace['Security'])) { |
|
264 | + $this->namespace['Security'] = new Security($this); |
|
265 | + } |
|
266 | + return $this->namespace['Security']; |
|
267 | + } |
|
268 | + public function shutdown() : Shutdown |
|
269 | + { |
|
270 | + if (!isset($this->namespace['Shutdown'])) { |
|
271 | + $this->namespace['Shutdown'] = new Shutdown($this); |
|
272 | + } |
|
273 | + return $this->namespace['Shutdown']; |
|
274 | + } |
|
275 | + public function simulate() : Simulate |
|
276 | + { |
|
277 | + if (!isset($this->namespace['Simulate'])) { |
|
278 | + $this->namespace['Simulate'] = new Simulate($this); |
|
279 | + } |
|
280 | + return $this->namespace['Simulate']; |
|
281 | + } |
|
282 | + public function slm() : Slm |
|
283 | + { |
|
284 | + if (!isset($this->namespace['Slm'])) { |
|
285 | + $this->namespace['Slm'] = new Slm($this); |
|
286 | + } |
|
287 | + return $this->namespace['Slm']; |
|
288 | + } |
|
289 | + public function snapshot() : Snapshot |
|
290 | + { |
|
291 | + if (!isset($this->namespace['Snapshot'])) { |
|
292 | + $this->namespace['Snapshot'] = new Snapshot($this); |
|
293 | + } |
|
294 | + return $this->namespace['Snapshot']; |
|
295 | + } |
|
296 | + public function sql() : Sql |
|
297 | + { |
|
298 | + if (!isset($this->namespace['Sql'])) { |
|
299 | + $this->namespace['Sql'] = new Sql($this); |
|
300 | + } |
|
301 | + return $this->namespace['Sql']; |
|
302 | + } |
|
303 | + public function ssl() : Ssl |
|
304 | + { |
|
305 | + if (!isset($this->namespace['Ssl'])) { |
|
306 | + $this->namespace['Ssl'] = new Ssl($this); |
|
307 | + } |
|
308 | + return $this->namespace['Ssl']; |
|
309 | + } |
|
310 | + public function synonyms() : Synonyms |
|
311 | + { |
|
312 | + if (!isset($this->namespace['Synonyms'])) { |
|
313 | + $this->namespace['Synonyms'] = new Synonyms($this); |
|
314 | + } |
|
315 | + return $this->namespace['Synonyms']; |
|
316 | + } |
|
317 | + public function tasks() : Tasks |
|
318 | + { |
|
319 | + if (!isset($this->namespace['Tasks'])) { |
|
320 | + $this->namespace['Tasks'] = new Tasks($this); |
|
321 | + } |
|
322 | + return $this->namespace['Tasks']; |
|
323 | + } |
|
324 | + public function textStructure() : TextStructure |
|
325 | + { |
|
326 | + if (!isset($this->namespace['TextStructure'])) { |
|
327 | + $this->namespace['TextStructure'] = new TextStructure($this); |
|
328 | + } |
|
329 | + return $this->namespace['TextStructure']; |
|
330 | + } |
|
331 | + public function transform() : Transform |
|
332 | + { |
|
333 | + if (!isset($this->namespace['Transform'])) { |
|
334 | + $this->namespace['Transform'] = new Transform($this); |
|
335 | + } |
|
336 | + return $this->namespace['Transform']; |
|
337 | + } |
|
338 | + public function watcher() : Watcher |
|
339 | + { |
|
340 | + if (!isset($this->namespace['Watcher'])) { |
|
341 | + $this->namespace['Watcher'] = new Watcher($this); |
|
342 | + } |
|
343 | + return $this->namespace['Watcher']; |
|
344 | + } |
|
345 | + public function xpack() : Xpack |
|
346 | + { |
|
347 | + if (!isset($this->namespace['Xpack'])) { |
|
348 | + $this->namespace['Xpack'] = new Xpack($this); |
|
349 | + } |
|
350 | + return $this->namespace['Xpack']; |
|
351 | + } |
|
352 | 352 | } |