ClientAwareTrait::setClient()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/*******************************************************************************
3
 *  This file is part of the GraphQL Bundle package.
4
 *
5
 *  (c) YnloUltratech <[email protected]>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 ******************************************************************************/
10
11
namespace Ynlo\GraphQLBundle\Behat\Client;
12
13
trait ClientAwareTrait
14
{
15
    /**
16
     * @var GraphQLClient
17
     */
18
    protected $client;
19
20
    /**
21
     * @param GraphQLClient $client
22
     *
23
     * @return ClientAwareInterface
24
     */
25
    public function setClient(GraphQLClient $client): ClientAwareInterface
26
    {
27
        $this->client = $client;
28
29
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Ynlo\GraphQLBundle\Behat\Client\ClientAwareTrait which is incompatible with the type-hinted return Ynlo\GraphQLBundle\Behat...nt\ClientAwareInterface.
Loading history...
30
    }
31
}
32