EventInterface::setPayload()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace SfCod\SocketIoBundle\Events;
4
5
/**
6
 * Interface EventInterface
7
 * Event name and broadcast nsp.
8
 *
9
 * @package SfCod\SocketIoBundle\Events
10
 */
11
interface EventInterface
12
{
13
    /**
14
     * List broadcast nsp array.
15
     */
16
    public static function broadcastOn(): array;
17
18
    /**
19
     * @param array $payload
0 ignored issues
show
Bug introduced by
There is no parameter named $payload. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
20
     */
21
    public function setPayload($data): EventInterface;
22
23
    /**
24
     * Get event name.
25
     */
26
    public static function name(): string;
27
}
28