Passed
Push — master ( f1c910...d9b23e )
by Arthur
01:39
created

Text   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 9
dl 0
loc 68
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A setText() 0 3 1
A getPrefix() 0 3 1
A getPostfix() 0 3 1
A setPrefix() 0 3 1
A __construct() 0 3 1
A getText() 0 3 1
A setPostfix() 0 3 1
A getReplaceChars() 0 3 1
A setReplaceChars() 0 3 1
1
<?php
2
3
namespace detox\source;
4
5
class Text
6
{
7
    private $text;
8
    private $replaceChars;
9
    private $prefix;
10
    private $postfix;
11
12
    public function __construct(string $text)
13
    {
14
        $this->text = $text;
15
    }
16
17
    public function setText(string $text) : void
18
    {
19
        $this->text = $text;
20
    }
21
22
    public function getText() : string
23
    {
24
        return $this->text;
25
    }
26
27
    /**
28
     * @param mixed $replaceChars
29
     */
30
    public function setReplaceChars(string $replaceChars) : void
31
    {
32
        $this->replaceChars = $replaceChars;
33
    }
34
35
    /**
36
     * @return mixed
37
     */
38
    public function getReplaceChars() : string
39
    {
40
        return $this->replaceChars;
41
    }
42
43
    /**
44
     * @param mixed $prefix
45
     */
46
    public function setPrefix($prefix) : void
47
    {
48
        $this->prefix = $prefix;
49
    }
50
51
    /**
52
     * @return mixed
53
     */
54
    public function getPostfix()
55
    {
56
        return $this->postfix;
57
    }
58
59
    /**
60
     * @param mixed $postfix
61
     */
62
    public function setPostfix($postfix) : void
63
    {
64
        $this->postfix = $postfix;
65
    }
66
67
    /**
68
     * @return mixed
69
     */
70
    public function getPrefix()
71
    {
72
        return $this->prefix;
73
    }
74
}