Issues (29)

src/Event/ServerStartEvent.php (1 issue)

1
<?php
2
3
/*
4
 * This file is part of PHP DNS Server.
5
 *
6
 * (c) Yif Swery <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace yswery\DNS\Event;
13
14
use React\Datagram\SocketInterface;
15
use Symfony\Component\EventDispatcher\Event;
16
17
class ServerStartEvent extends Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead ( Ignorable by Annotation )

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

17
class ServerStartEvent extends /** @scrutinizer ignore-deprecated */ Event
Loading history...
18
{
19
    /**
20
     * @var SocketInterface
21
     */
22
    private $socket;
23
24
    /**
25
     * ServerStartEvent constructor.
26
     *
27
     * @param SocketInterface $socket
28
     */
29 4
    public function __construct(SocketInterface $socket)
30
    {
31 4
        $this->socket = $socket;
32 4
    }
33
34
    /**
35
     * @return SocketInterface
36
     */
37
    public function getSocket(): SocketInterface
38
    {
39
        return $this->socket;
40
    }
41
}
42