License   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLicenseInformation() 0 4 1
1
<?php
2
namespace FlexyProject\GitHub\Receiver\Enterprise;
3
4
/**
5
 * The License API provides information on your Enterprise license.
6
 *
7
 * @link    https://developer.github.com/v3/enterprise/license/
8
 * @package GitHub\Receiver\Enterprise
9
 */
10
class License extends AbstractEnterprise
11
{
12
13
    /**
14
     * Get license information
15
     *
16
     * @link https://developer.github.com/v3/enterprise/license/#get-license-information
17
     * @return array
18
     */
19
    public function getLicenseInformation(): array
20
    {
21
        return $this->getApi()->request(sprintf('/enterprise/settings/license'));
22
    }
23
}