setOauthAccessTokenProviderPluginsDependency()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace PyzTest\Zed\OauthClient;
11
12
use Codeception\Actor;
13
use Spryker\Zed\OauthClient\Business\OauthClientFacadeInterface;
14
use Spryker\Zed\OauthClient\OauthClientDependencyProvider;
15
16
/**
17
 * Inherited Methods
18
 *
19
 * @method void wantTo($text)
20
 * @method void wantToTest($text)
21
 * @method void execute($callable)
22
 * @method void expectTo($prediction)
23
 * @method void expect($prediction)
24
 * @method void amGoingTo($argumentation)
25
 * @method void am($role)
26
 * @method void lookForwardTo($achieveValue)
27
 * @method void comment($description)
28
 * @method void pause($vars = [])
29
 *
30
 * @SuppressWarnings(\PyzTest\Zed\OauthClient\PHPMD)
31
 */
32
class OauthClientBusinessTester extends Actor
33
{
34
    use _generated\OauthClientBusinessTesterActions;
0 ignored issues
show
Bug introduced by
The type PyzTest\Zed\OauthClient\...ntBusinessTesterActions 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...
35
36
    /**
37
     * @return \Spryker\Zed\MessageBroker\Business\MessageBrokerFacadeInterface
38
     */
39
    public function getOauthClientFacade(): OauthClientFacadeInterface
40
    {
41
        return $this->getLocator()->oauthClient()->facade();
42
    }
43
44
    /**
45
     * @param array<\Spryker\Zed\OauthClientExtension\Dependency\Plugin\OauthAccessTokenProviderPluginInterface> $pluginStack
46
     *
47
     * @return void
48
     */
49
    public function setOauthAccessTokenProviderPluginsDependency(array $pluginStack): void
50
    {
51
        $this->setDependency(
52
            OauthClientDependencyProvider::PLUGINS_OAUTH_ACCESS_TOKEN_PROVIDER,
53
            $pluginStack,
54
        );
55
    }
56
}
57