Skip to content

Commit 95667a5

Browse files
authored
Use dedicated namespace for aggregation traits (#1888)
1 parent c9d01b6 commit 95667a5

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/Aggregation/GeoDistance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class GeoDistance extends AbstractAggregation
1313
{
14-
use KeyedTrait;
14+
use Traits\KeyedTrait;
1515

1616
public const DISTANCE_TYPE_ARC = 'arc';
1717
public const DISTANCE_TYPE_PLANE = 'plane';

src/Aggregation/Histogram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
class Histogram extends AbstractSimpleAggregation
1111
{
12-
use KeyedTrait;
12+
use Traits\KeyedTrait;
1313

1414
/**
1515
* @param string $name the name of this aggregation

src/Aggregation/IpRange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class IpRange extends AbstractAggregation
1313
{
14-
use KeyedTrait;
14+
use Traits\KeyedTrait;
1515

1616
/**
1717
* @param string $name the name of this aggregation

src/Aggregation/Percentiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
class Percentiles extends AbstractSimpleAggregation
1111
{
12-
use KeyedTrait;
12+
use Traits\KeyedTrait;
1313

1414
/**
1515
* @param string $name the name of this aggregation

src/Aggregation/PercentilesBucket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class PercentilesBucket extends AbstractAggregation
1313
{
14-
use KeyedTrait;
14+
use Traits\KeyedTrait;
1515

1616
/**
1717
* @param string $name the name of this aggregation

src/Aggregation/Range.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class Range extends AbstractSimpleAggregation
1313
{
14-
use KeyedTrait;
14+
use Traits\KeyedTrait;
1515

1616
/**
1717
* Add a range to this aggregation.

src/Aggregation/KeyedTrait.php renamed to src/Aggregation/Traits/KeyedTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Elastica\Aggregation;
3+
namespace Elastica\Aggregation\Traits;
44

55
trait KeyedTrait
66
{

0 commit comments

Comments
 (0)