Completed
Pull Request — 1.x (#187)
by Akihito
02:07
created

HttpClientProvider::get()   A

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 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\Module;
6
7
use Ray\Di\ProviderInterface;
8
use Symfony\Component\HttpClient\HttpClient;
9
use Symfony\Contracts\HttpClient\HttpClientInterface;
10
11
final class HttpClientProvider implements ProviderInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function get() : HttpClientInterface
17
    {
18
        return HttpClient::create();
19
    }
20
}
21