Completed
Pull Request — master (#404)
by De Cramer
03:04
created

ServerApiVersion   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 4
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInformation() 0 4 1
1
<?php
2
3
namespace eXpansion\Bundle\ServerInformation\Services\ServerInformation;
4
5
use eXpansion\Bundle\ServerInformation\Ui\Factory\ServerInformationLineFactory;
6
use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
7
use eXpansion\Framework\Core\Storage\GameDataStorage;
8
use FML\Controls\Control;
9
10
class ServerApiVersion extends ServerName
11
{
12
    /**
13
     * @inheritdoc
14
     */
15
    public function getInformation(string $login): Control
16
    {
17
        return $this->serverInformationLineFactory->create("expansion_server_information.server_api_version", $this->dataStorage->getVersion()->apiVersion);
18
    }
19
}
20