TldrPage   A
last analyzed

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 __construct() 0 6 1
A getName() 0 4 1
A getPlatform() 0 4 1
A getContent() 0 4 1
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