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

SaasClientControllerTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 5
c 1
b 0
f 1
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrentClient() 0 3 1
A setClientService() 0 5 1
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