Passed
Push — master ( 39a14a...98f505 )
by Scrutinizer
01:35
created

Config   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUrlHost() 0 3 1
A getInfoServer() 0 3 1
1
<?php
2
3
/**
4
 * Main Class of \KEINOS\MSTDN_TOOLS\Config.
5
 *
6
 * Public method/properties must be defined here.
7
 *
8
 * Note:
9
 * - The only public method "__construct()" was defined in "ConfigProtectedMethods".
10
 * - Constants even public must be defined in "ConfigConstants".
11
 * - Public but static method/properties must be defined in "ConfigStaticMethods".
12
 * - Protected methods/properties must be defined in "ConfigProtectedMethods".
13
 */
14
15
 declare(strict_types=1);
16
17
namespace KEINOS\MSTDN_TOOLS;
18
19
final class Config extends ConfigProtectedMethods
20
{
21
    // Public method "__construct()" was defined in "ConfigProtectedMethods".
22
    //public function __construct()
23
24
    public function getUrlHost(): string
25
    {
26
        return $this->url_host;
27
    }
28
29
    /**
30
     * @return array<mixed,mixed>
31
     */
32
    public function getInfoServer(): array
33
    {
34
        return $this->info_server;
35
    }
36
}
37