Skip to content

Commit 1095977

Browse files
authored
move non-public classes into Impl namespace (#66)
1 parent d72754b commit 1095977

Some content is hidden

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

46 files changed

+143
-276
lines changed

phpdoc.dist.xml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,6 @@
1010
<directory>src</directory>
1111
<ignore>src/LaunchDarkly/Impl/*</ignore>
1212
<ignore>src/LaunchDarkly/Impl/Integrations/*</ignore>
13-
<!-- the @ignore and @internal tags currently not working correctly in phpDocumentor, so we will manually ignore these internal files: -->
14-
<ignore>src/LaunchDarkly/Clause.php</ignore>
15-
<ignore>src/LaunchDarkly/EvalResult.php</ignore>
16-
<ignore>src/LaunchDarkly/EvaluationException.php</ignore>
17-
<ignore>src/LaunchDarkly/EventProcessor.php</ignore>
18-
<ignore>src/LaunchDarkly/EventSerializer.php</ignore>
19-
<ignore>src/LaunchDarkly/FeatureFlag.php</ignore>
20-
<ignore>src/LaunchDarkly/Operators.php</ignore>
21-
<ignore>src/LaunchDarkly/PreloadedFeatureRequester.php</ignore>
22-
<ignore>src/LaunchDarkly/Prerequisite.php</ignore>
23-
<ignore>src/LaunchDarkly/Rollout.php</ignore>
24-
<ignore>src/LaunchDarkly/Rule.php</ignore>
25-
<ignore>src/LaunchDarkly/Segment.php</ignore>
26-
<ignore>src/LaunchDarkly/SegmentRule.php</ignore>
27-
<ignore>src/LaunchDarkly/SemanticVersion.php</ignore>
28-
<ignore>src/LaunchDarkly/Target.php</ignore>
29-
<ignore>src/LaunchDarkly/UnrecoverableHTTPStatusException.php</ignore>
30-
<ignore>src/LaunchDarkly/Util.php</ignore>
31-
<ignore>src/LaunchDarkly/VariationOrRollout.php</ignore>
32-
<ignore>src/LaunchDarkly/WeightedVariation.php</ignore>
3313
</files>
3414
<transformations>
3515
<template name="clean"/>

src/LaunchDarkly/FeatureFlagsState.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
namespace LaunchDarkly;
33

4+
use LaunchDarkly\Impl\Model\FeatureFlag;
5+
46
/**
57
* A snapshot of the state of all feature flags with regard to a specific user.
68
*

src/LaunchDarkly/FeatureRequester.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php
22
namespace LaunchDarkly;
33

4+
use LaunchDarkly\Impl\Model\FeatureFlag;
5+
use LaunchDarkly\Impl\Model\Segment;
6+
47
/**
58
* Interface for the component that retrieves feature flag data.
69
*

src/LaunchDarkly/EvalResult.php renamed to src/LaunchDarkly/Impl/EvalResult.php

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

3-
namespace LaunchDarkly;
3+
namespace LaunchDarkly\Impl;
4+
5+
use LaunchDarkly\EvaluationDetail;
46

57
/**
68
* Internal class that holds intermediate flag evaluation results.

src/LaunchDarkly/Impl/EventFactory.php renamed to src/LaunchDarkly/Impl/Events/EventFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
2-
namespace LaunchDarkly\Impl;
2+
namespace LaunchDarkly\Impl\Events;
33

44
use LaunchDarkly\EvaluationDetail;
55
use LaunchDarkly\EvaluationReason;
6-
use LaunchDarkly\FeatureFlag;
76
use LaunchDarkly\LDUser;
8-
use LaunchDarkly\Util;
7+
use LaunchDarkly\Impl\Util;
8+
use LaunchDarkly\Impl\Model\FeatureFlag;
99

1010
class EventFactory
1111
{

src/LaunchDarkly/EventProcessor.php renamed to src/LaunchDarkly/Impl/Events/EventProcessor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
2-
namespace LaunchDarkly;
2+
namespace LaunchDarkly\Impl\Events;
33

4+
use LaunchDarkly\EventPublisher;
45
use LaunchDarkly\Integrations\Curl;
56

67
/**

src/LaunchDarkly/EventSerializer.php renamed to src/LaunchDarkly/Impl/Events/EventSerializer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
2-
namespace LaunchDarkly;
2+
namespace LaunchDarkly\Impl\Events;
3+
4+
use LaunchDarkly\LDUser;
35

46
/**
57
* Internal class that translates analytics events into the format used for sending them to LaunchDarkly.

src/LaunchDarkly/Impl/NullEventProcessor.php renamed to src/LaunchDarkly/Impl/Events/NullEventProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
2-
namespace LaunchDarkly\Impl;
2+
namespace LaunchDarkly\Impl\Events;
33

4-
class NullEventProcessor extends \LaunchDarkly\EventProcessor
4+
class NullEventProcessor extends EventProcessor
55
{
66
public function enqueue($event): bool
77
{

src/LaunchDarkly/Impl/Integrations/FeatureRequesterBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
namespace LaunchDarkly\Impl\Integrations;
33

4-
use LaunchDarkly\FeatureFlag;
54
use LaunchDarkly\FeatureRequester;
6-
use LaunchDarkly\Segment;
5+
use LaunchDarkly\Impl\Model\FeatureFlag;
6+
use LaunchDarkly\Impl\Model\Segment;
77
use Psr\Log\LoggerInterface;
88
use Psr\Log\NullLogger;
99

src/LaunchDarkly/Impl/Integrations/FileDataFeatureRequester.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
namespace LaunchDarkly\Impl\Integrations;
33

4-
use LaunchDarkly\FeatureFlag;
54
use LaunchDarkly\FeatureRequester;
6-
use LaunchDarkly\Segment;
5+
use LaunchDarkly\Impl\Model\FeatureFlag;
6+
use LaunchDarkly\Impl\Model\Segment;
77

88
class FileDataFeatureRequester implements FeatureRequester
99
{

0 commit comments

Comments
 (0)