Completed
Push — master ( 11c186...54c7de )
by Gareth
13:43
created

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