Passed
Push — master ( d769b5...44239a )
by Mehmet
02:45
created

RuntimeApp   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 21
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getType() 0 4 1
A getLanguage() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace SelamiApp;
5
6
class RuntimeApp
7
{
8
    private $language;
9
    private $type;
10
11
    public function  __construct(string $type, string $language = 'en')
12
    {
13
        $this->language = $language;
14
        $this->type = $type;
15
    }
16
17
    public function getType() : string
18
    {
19
        return $this->type;
20
    }
21
22
    public function getLanguage() : string
23
    {
24
        return $this->language;
25
    }
26
}