TextObject   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 71
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A setType() 0 4 1
A getLanguage() 0 4 1
A setLanguage() 0 4 1
A getText() 0 4 1
A setText() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace ikoene\Marvel\Entity;
4
5
/**
6
 * Class TextObject
7
 * @package ikoene\Marvel\Entity
8
 */
9
class TextObject
10
{
11
    /**
12
     * The canonical type of the text object (e.g. solicit text, preview text, etc.).
13
     *
14
     * @var string
15
     */
16
    private $type;
17
18
    /**
19
     * The IETF language tag denoting the language the text object is written in.
20
     *
21
     * @var string
22
     */
23
    private $language;
24
25
    /**
26
     * The text.
27
     *
28
     * @var string
29
     */
30
    private $text;
31
32
    /**
33
     * @return string
34
     */
35
    public function getType()
36
    {
37
        return $this->type;
38
    }
39
40
    /**
41
     * @param string $type
42
     */
43
    public function setType(string $type)
44
    {
45
        $this->type = $type;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getLanguage()
52
    {
53
        return $this->language;
54
    }
55
56
    /**
57
     * @param string $language
58
     */
59
    public function setLanguage(string $language)
60
    {
61
        $this->language = $language;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getText()
68
    {
69
        return $this->text;
70
    }
71
72
    /**
73
     * @param string $text
74
     */
75
    public function setText(string $text)
76
    {
77
        $this->text = $text;
78
    }
79
}
80