Test Failed
Push — master ( 21482a...25bd35 )
by Marcel
03:26
created

SaasClientControllerTrait::getCurrentClient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the SaasProviderBundle package.
5
 * (c) Fluxter <http://fluxter.net/>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Fluxter\SaasProviderBundle\Controller\Abstraction;
11
12
trait SaasClientControllerTrait
13
{
14
    /** @var SaasClientService */
0 ignored issues
show
Bug introduced by
The type Fluxter\SaasProviderBund...ction\SaasClientService was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
    private $clientService;
16
17
    /**
18
     * Set the value of clientService.
19
     *
20
     * @return self
21
     */
22
    public function setClientService(SaasClientService $clientService)
23
    {
24
        $this->clientService = $clientService;
25
26
        return $this;
27
    }
28
29
    protected function getCurrentClient()
30
    {
31
        return $this->clientService->getCurrent();
32
    }
33
}
34