| Total Complexity | 9 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
| 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() |
||
| 73 | } |
||
| 74 | } |