1 | <?php |
||
9 | class RedisBroadcaster extends AbstractBroadcaster implements BroadcasterInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var ClientInterface |
||
13 | */ |
||
14 | private $redis; |
||
15 | |||
16 | /** |
||
17 | * RedisBroadcaster constructor. |
||
18 | 6 | * @param ClientInterface $redis |
|
19 | */ |
||
20 | 6 | public function __construct(ClientInterface $redis) |
|
24 | |||
25 | /** |
||
26 | * @param Identity $identity |
||
27 | * @return mixed |
||
28 | * @throws \Exception |
||
29 | */ |
||
30 | public function auth(Identity $identity) |
||
39 | |||
40 | /** |
||
41 | * @param Identity $identity |
||
42 | * @param $response |
||
43 | * @return string |
||
44 | */ |
||
45 | public function validAuthenticationResponse(Identity $identity, $response) |
||
58 | |||
59 | /** |
||
60 | * Broadcast the given event. |
||
61 | * |
||
62 | * @param array $channels |
||
63 | * @param string $event |
||
64 | * @param array $payload |
||
65 | * @return void |
||
66 | */ |
||
67 | public function broadcast(array $channels, $event, array $payload = []) |
||
76 | } |
||
77 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.