LegacyReceiverFactory::getReceiverNames()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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