8000 [RateLimiter] Remove redundant properties · Seldaek/symfony@587d99f · GitHub
[go: up one dir, main page]

Skip to content

Commit 587d99f

Browse files
committed
[RateLimiter] Remove redundant properties
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent bd889f9 commit 587d99f

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

src/Symfony/Component/RateLimiter/Policy/FixedWindowLimiter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,13 @@ final class FixedWindowLimiter implements LimiterInterface
2929
{
3030
use ResetLimiterTrait;
3131

32-
private $id;
3332
private $limit;
34-
private $storage;
3533

3634
/**
3735
* @var int seconds
3836
*/
3937
private $interval;
4038

41-
/**
42-
* @var LockInterface
43-
*/
44-
private $lock;
45-
4639 public function __construct(string $id, int $limit, \DateInterval $interval, StorageInterface $storage, LockInterface $lock = null)
4740
{
4841
if ($limit < 1) {

src/Symfony/Component/RateLimiter/Policy/SlidingWindowLimiter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,13 @@ final class SlidingWindowLimiter implements LimiterInterface
3737
{
3838
use ResetLimiterTrait;
3939

40-
private $id;
4140
private $limit;
42-
private $storage;
4341

4442
/**
4543
* @var int seconds
4644
*/
4745
private $interval;
4846

49-
/**
50-
* @var LockInterface
51-
*/
52-
private $lock;
53-
5447
public function __construct(string $id, int $limit, \DateInterval $interval, StorageInterface $storage, LockInterface $lock = null)
5548
{
5649
$this->storage = $storage;

src/Symfony/Component/RateLimiter/Policy/TokenBucketLimiter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,8 @@ final class TokenBucketLimiter implements LimiterInterface
2828
{
2929
use ResetLimiterTrait;
3030

31-
private $id;
3231
private $maxBurst;
3332
private $rate;
34-
private $storage;
35-
36-
/**
37-
* @var LockInterface
38-
*/
39-
private $lock;
4033

4134
public function __construct(string $id, int $maxBurst, Rate $rate, StorageInterface $storage, LockInterface $lock = null)
4235
{

0 commit comments

Comments
 (0)
0