Skip to content

Commit 1639449

Browse files
committed
Added header license
1 parent 7025040 commit 1639449

File tree

466 files changed

+6508
-2425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+6508
-2425
lines changed

src/Elasticsearch/Client.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216
declare(strict_types = 1);
317

418
namespace Elasticsearch;
@@ -47,11 +61,6 @@
4761
* Class Client
4862
* Generated running $ php util/GenerateEndpoints.php 7.9
4963
*
50-
* @category Elasticsearch
51-
* @package Elasticsearch
52-
* @author Enrico Zimuel <enrico.zimuel@elastic.co>
53-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
54-
* @link http://elastic.co
5564
*/
5665
class Client
5766
{

src/Elasticsearch/ClientBuilder.php

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -25,15 +39,6 @@
2539
use Psr\Log\LoggerInterface;
2640
use Psr\Log\NullLogger;
2741

28-
/**
29-
* Class ClientBuilder
30-
*
31-
* @category Elasticsearch
32-
* @package Elasticsearch\Common\Exceptions
33-
* @author Zachary Tong <zach@elastic.co>
34-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
35-
* @link http://elastic.co
36-
*/
3742
class ClientBuilder
3843
{
3944
/**
@@ -340,8 +345,7 @@ public function setHosts(array $hosts): ClientBuilder
340345
/**
341346
* Set the APIKey Pair, consiting of the API Id and the ApiKey of the Response from /_security/api_key
342347
*
343-
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html
344-
*
348+
*
345349
* @throws AuthenticationConfigException
346350
*/
347351
public function setApiKey(string $id, string $apiKey): ClientBuilder
@@ -386,8 +390,7 @@ public function setBasicAuthentication(string $username, string $password): Clie
386390
/**
387391
* Set Elastic Cloud ID to connect to Elastic Cloud
388392
*
389-
* @link https://elastic.co/cloud
390-
*
393+
*
391394
* @param string $cloudId
392395
*/
393396
public function setElasticCloudId(string $cloudId): ClientBuilder

src/Elasticsearch/Common/EmptyLogger.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -13,11 +27,6 @@
1327
* Logger that doesn't do anything. Similar to Monolog's NullHandler,
1428
* but avoids the overhead of partially loading Monolog
1529
*
16-
* @category Elasticsearch
17-
* @package Elasticsearch\Common
18-
* @author Zachary Tong <zach@elastic.co>
19-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
20-
* @link http://elastic.co
2130
*/
2231
class EmptyLogger extends AbstractLogger implements LoggerInterface
2332
{
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
<?php
2-
declare(strict_types = 1);
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
315

4-
// Licensed to Elasticsearch B.V under one or more agreements.
5-
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
6-
// See the LICENSE file in the project root for more information
16+
declare(strict_types = 1);
717

818
namespace Elasticsearch\Common\Exceptions;
919

10-
/**
11-
* AuthenticationConfigException
12-
*
13-
* @category Elasticsearch
14-
* @package Elasticsearch\Common\Exceptions
15-
* @author Philip Krauss <philip.krauss@elastic.co>
16-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
17-
* @link http://elastic.co
18-
*/
1920
class AuthenticationConfigException extends \RuntimeException implements ElasticsearchException
2021
{
2122
}

src/Elasticsearch/Common/Exceptions/BadMethodCallException.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
215

316
declare(strict_types = 1);
417

@@ -9,11 +22,6 @@
922
*
1023
* Denote problems with a method call (e.g. incorrect number of arguments)
1124
*
12-
* @category Elasticsearch
13-
* @package Elasticsearch\Common\Exceptions
14-
* @author Zachary Tong <zach@elastic.co>
15-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
16-
* @link http://elastic.co
1725
*/
1826
class BadMethodCallException extends \BadMethodCallException implements ElasticsearchException
1927
{

src/Elasticsearch/Common/Exceptions/BadRequest400Exception.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -7,11 +21,6 @@
721
/**
822
* BadRequest400Exception, thrown on 400 conflict http error
923
*
10-
* @category Elasticsearch
11-
* @package Elasticsearch\Common\Exceptions
12-
* @author Zachary Tong <zach@elastic.co>
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14-
* @link http://elastic.co
1524
*/
1625
class BadRequest400Exception extends \Exception implements ElasticsearchException
1726
{
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

519
namespace Elasticsearch\Common\Exceptions;
620

7-
/**
8-
* Class ClientErrorResponseException
9-
*
10-
* @category Elasticsearch
11-
* @package Elasticsearch\Common\Exceptions
12-
* @author Zachary Tong <zach@elastic.co>
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14-
* @link http://elastic.co
15-
*/
1621
class ClientErrorResponseException extends TransportException implements ElasticsearchException
1722
{
1823
}
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

519
namespace Elasticsearch\Common\Exceptions;
620

7-
/**
8-
* Conflict409Exception, thrown on 409 conflict http error
9-
*
10-
* @category Elasticsearch
11-
* @package Elasticsearch\Common\Exceptions
12-
* @author Zachary Tong <zach@elastic.co>
13-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
14-
* @link http://elastic.co
15-
*/
1621
class Conflict409Exception extends \Exception implements ElasticsearchException
1722
{
1823
}
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -7,15 +21,6 @@
721
use Elasticsearch\Common\Exceptions\ElasticsearchException;
822
use Elasticsearch\Common\Exceptions\TransportException;
923

10-
/**
11-
* Class CouldNotConnectToHost
12-
*
13-
* @category Elasticsearch
14-
* @package Elasticsearch\Common\Exceptions\Curl
15-
* @author Zachary Tong <zach@elastic.co>
16-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
17-
* @link http://elastic.co
18-
*/
1924
class CouldNotConnectToHost extends TransportException implements ElasticsearchException
2025
{
2126
}
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
<?php
2+
/**
3+
* Elasticsearch PHP client
4+
*
5+
* @link https://github.com/elastic/elasticsearch-php/
6+
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
7+
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
8+
* @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1
9+
*
10+
* Licensed to Elasticsearch B.V under one or more agreements.
11+
* Elasticsearch B.V licenses this file to you under the Apache 2.0 License or
12+
* the GNU Lesser General Public License, Version 2.1, at your option.
13+
* See the LICENSE file in the project root for more information.
14+
*/
15+
216

317
declare(strict_types = 1);
418

@@ -7,15 +21,6 @@
721
use Elasticsearch\Common\Exceptions\ElasticsearchException;
822
use Elasticsearch\Common\Exceptions\TransportException;
923

10-
/**
11-
* Class CouldNotResolveHostException
12-
*
13-
* @category Elasticsearch
14-
* @package Elasticsearch\Common\Exceptions\Curl
15-
* @author Zachary Tong <zach@elastic.co>
16-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
17-
* @link http://elastic.co
18-
*/
1924
class CouldNotResolveHostException extends TransportException implements ElasticsearchException
2025
{
2126
}

0 commit comments

Comments
 (0)