createConnectionHandler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PHPFastCGI\FastCGIDaemon\Driver\Userland\ConnectionHandler;
6
7
use PHPFastCGI\FastCGIDaemon\Driver\Userland\Connection\ConnectionInterface;
8
use PHPFastCGI\FastCGIDaemon\KernelInterface;
9
10
/**
11
 * The default implementation of the ConnectionHandlerFactoryInterface.
12
 */
13
final class ConnectionHandlerFactory implements ConnectionHandlerFactoryInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function createConnectionHandler(KernelInterface $kernel, ConnectionInterface $connection): ConnectionHandlerInterface
19
    {
20
        return new ConnectionHandler($kernel, $connection);
21
    }
22
}
23