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

TldrPage   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 48
wmc 4
lcom 0
cbo 0
rs 10
c 2
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getContent() 0 4 1
A __construct() 0 6 1
A getPlatform() 0 4 1
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