ClientTrait::setClient()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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