ClientTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setClient() 0 3 1
1
<?php
2
3
namespace Aosmak\Laravel\Layer\Sdk\Traits;
4
5
use GuzzleHttp\ClientInterface;
6
7
/**
8
 * Trait ClientTrait
9
 * @package namespace Aosmak\Laravel\Layer\Sdk\Traits
10
 */
11
trait ClientTrait
12
{
13
    /**
14
     * Guzzle client
15
     *
16
     * @var \GuzzleHttp\ClientInterface
17
     */
18
    protected $client;
19
20
    /**
21
     * Set Guzzle client
22
     *
23
     * @param \GuzzleHttp\ClientInterface $client
24
     *
25
     * @return void
26
     */
27 53
    public function setClient(ClientInterface $client): void
28
    {
29 53
        $this->client = $client;
30 53
    }
31
}
32