Training   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 56
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getContent() 0 4 1
A setContent() 0 4 1
A getType() 0 4 1
A setType() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Cp\DomainObject;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Class Training
9
 */
10
class Training
11
{
12
    /**
13
     * @var string
14
     *
15
     * @JMS\Type("string")
16
     */
17
    private $content;
18
19
    /**
20
     * @var string
21
     *
22
     * @JMS\Type("string")
23
     */
24
    private $type;
25
26
    /**
27
     * @return string
28
     */
29
    public function getContent()
30
    {
31
        return $this->content;
32
    }
33
34
    /**
35
     * @param string $content
36
     */
37
    public function setContent($content)
38
    {
39
        $this->content = $content;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getType()
46
    {
47
        return $this->type;
48
    }
49
50
    /**
51
     * @param string $type
52
     */
53
    public function setType($type)
54
    {
55
        $this->type = $type;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function __toString()
62
    {
63
        return $this->getType().':'.$this->getContent()."\n";
64
    }
65
}
66