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

Text::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}