Skip to content

Commit 1deb7d0

Browse files
committed
Remove Timer class from public API
1 parent 2188671 commit 1deb7d0

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/Timer.php renamed to src/Internal/Timer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22

3-
namespace Amp\ReactAdapter;
3+
namespace Amp\ReactAdapter\Internal;
44

55
use React\EventLoop\TimerInterface;
66

7-
class Timer implements TimerInterface
7+
/** @internal */
8+
final class Timer implements TimerInterface
89
{
910
/** @var float */
1011
private float $interval;

src/ReactAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Amp\ReactAdapter;
44

5+
use Amp\ReactAdapter\Internal\Timer;
56
use React\EventLoop\LoopInterface;
67
use React\EventLoop\TimerInterface;
78
use Revolt\EventLoop;

test/Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Amp\ReactAdapter\Test;
44

5+
use Amp\ReactAdapter\Internal\Timer;
56
use Amp\ReactAdapter\ReactAdapter;
6-
use Amp\ReactAdapter\Timer;
77
use React\EventLoop\LoopInterface;
88
use React\Tests\EventLoop\AbstractLoopTest;
99
use Revolt\EventLoop;

0 commit comments

Comments
 (0)