ConnectionHandlerFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createConnectionHandler() 0 4 1
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