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

RuntimeApp::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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
}