Passed
Push — master ( 642694...42d1b9 )
by Sébastien
05:19 queued 01:13
created

LegacyReceiverFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getReceiverNames() 0 3 1
A create() 0 3 1
1
<?php
2
3
namespace Bdf\QueueBundle\Tests\Fixtures;
4
5
use Bdf\Queue\Consumer\Receiver\Builder\ReceiverFactory;
6
use Bdf\Queue\Consumer\ReceiverInterface;
7
use Bdf\QueueBundle\Consumption\ReceiverFactoryProviderInterface;
8
9
class LegacyReceiverFactory implements ReceiverFactoryProviderInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Bdf\QueueBundle\Consumpt...actoryProviderInterface has been deprecated: Since 1.3. Use Bdf\QueueBundle\Consumption\ReceiverFactoryInterface ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

9
class LegacyReceiverFactory implements /** @scrutinizer ignore-deprecated */ ReceiverFactoryProviderInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
10
{
11
    public function getReceiverNames(): array
12
    {
13
        return ['legacy'];
14
    }
15
16
    public function create(ReceiverFactory $factory, ReceiverInterface $receiver, ...$arguments): ReceiverInterface
17
    {
18
        return new FooReceiver($arguments);
19
    }
20
}
21