Passed
Pull Request — 1.11.x (#5763)
by Angel Fernando Quiroz
13:34
created

AzureCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/* For license terms, see /license.txt */
4
5
use TheNetworg\OAuth2\Client\Provider\Azure;
6
7
class AzureCommand
8
{
9
    /**
10
     * @var AzureActiveDirectory
11
     */
12
    protected $plugin;
13
    /**
14
     * @var Azure
15
     */
16
    protected $provider;
17
18
    public function __construct()
19
    {
20
        $this->plugin = AzureActiveDirectory::create();
21
        $this->plugin->get_settings(true);
22
        $this->provider = $this->plugin->getProviderForApiGraph();
23
    }
24
}
25