Passed
Pull Request — master (#1)
by
unknown
02:45
created

Permission::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Nelexa\GPlay\Model;
5
6
class Permission
7
{
8
    /**
9
     * @var string
10
     */
11
    private $permission;
12
    /**
13
     * @var string
14
     */
15
    private $description;
16
17
    /**
18
     * Permission constructor.
19
     *
20
     * @param string $permission
21
     * @param string $description
22
     */
23
    public function __construct(string $permission, string $description)
24
    {
25
        $this->permission = $permission;
26
        $this->description = $description;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getPermission(): string
33
    {
34
        return $this->permission;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getDescription(): string
41
    {
42
        return $this->description;
43
    }
44
}
45