ClientFactory::create()   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
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * File: ClientFactory.php
6
 *
7
 * @author      Maciej Sławik <[email protected]>
8
 * Github:      https://github.com/maciejslawik
9
 */
10
11
namespace MSlwk\ReactPhpPlayground\Model\Adapter\ReactPHP;
12
13
use React\EventLoop\LoopInterface;
14
use React\HttpClient\Client;
15
16
/**
17
 * Class ClientFactory
18
 * @package MSlwk\ReactPhpPlayground\Model\Adapter\ReactPHP
19
 */
20
class ClientFactory
21
{
22
    /**
23
     * @param LoopInterface $loop
24
     * @return Client
25
     */
26
    public function create(LoopInterface $loop): Client
27
    {
28
        return new Client($loop);
29
    }
30
}
31