TldrPage::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 2
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
declare(strict_types=1);
3
4
namespace GarethEllis\Tldr\Page;
5
6
class TldrPage
7
{
8
    /**
9
     * @var String
10
     */
11
    private $name;
12
13
    /**
14
     * @var String
15
     */
16
    private $platform;
17
18
    /**
19
     * @var String
20
     */
21
    private $content;
22
23
    public function __construct(String $name, String $platform, String $content)
24
    {
25
        $this->name = $name;
26
        $this->platform = $platform;
27
        $this->content = $content;
28
    }
29
30
    /**
31
     * @return String
32
     */
33
    public function getName()
34
    {
35
        return $this->name;
36
    }
37
38
    /**
39
     * @return String
40
     */
41
    public function getPlatform()
42
    {
43
        return $this->platform;
44
    }
45
46
    /**
47
     * @return String
48
     */
49
    public function getContent()
50
    {
51
        return $this->content;
52
    }
53
}
54