Doc   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 46
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getSummary() 0 4 1
A getDescription() 0 4 1
1
<?php
2
/**
3
 * Created by gerk on 29.09.16 15:51
4
 */
5
6
namespace PeekAndPoke\Component\MetaCore\DomainModel\Docs;
7
8
use PeekAndPoke\Component\Slumber\Annotation\Slumber;
9
10
/**
11
 * @author Karsten J. Gerber <[email protected]>
12
 */
13
class Doc
14
{
15
    /**
16
     * @var string
17
     *
18
     * @Slumber\AsString()
19
     */
20
    private $summary;
21
22
    /**
23
     * @var string
24
     *
25
     * @Slumber\AsString()
26
     */
27
    private $description;
28
29
    /**
30
     * Doc constructor.
31
     *
32
     * @param string $summary
33
     * @param string $description
34
     */
35 13
    public function __construct($summary, $description)
36
    {
37 13
        $this->summary     = $summary;
38 13
        $this->description = $description;
39 13
    }
40
41
    /**
42
     * @return string
43
     */
44 3
    public function getSummary()
45
    {
46 3
        return $this->summary;
47
    }
48
49
    /**
50
     * @return string
51
     */
52 3
    public function getDescription()
53
    {
54 3
        return $this->description;
55
    }
56
57
58
}
59