Passed
Pull Request — master (#9)
by Rafael
03:29
created

StorageAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setStorage() 0 5 1
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\Storage;
12
13
trait StorageAwareTrait
14
{
15
    /**
16
     * @var Storage
17
     */
18
    protected $storage;
19
20
    /**
21
     * @param Storage $storage
22
     *
23
     * @return StorageAwareInterface
24
     */
25
    public function setStorage(Storage $storage): StorageAwareInterface
26
    {
27
        $this->storage = $storage;
28
29
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Ynlo\GraphQLBundle\Behat\Storage\StorageAwareTrait which is incompatible with the type-hinted return Ynlo\GraphQLBundle\Behat...e\StorageAwareInterface.
Loading history...
30
    }
31
}
32